MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / StubFlasher

Class StubFlasher

src/python/external/esptool/esptool/loader.py:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134class StubFlasher:
135 def __init__(self, json_path):
136 with open(json_path) as json_file:
137 stub = json.load(json_file)
138
139 self.text = base64.b64decode(stub["text"])
140 self.text_start = stub["text_start"]
141 self.entry = stub["entry"]
142
143 try:
144 self.data = base64.b64decode(stub["data"])
145 self.data_start = stub["data_start"]
146 except KeyError:
147 self.data = None
148 self.data_start = None
149
150
151class ESPLoader(object):

Callers 2

mem_beginMethod · 0.85
run_stubMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected