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

Method encode

src/python/SerialHelper.py:12–15  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

10 self.set_delimiters(delimiters)
11
12 def encode(self, data):
13 if type(data) == str:
14 return data.encode(encoding)
15 return data
16
17 def clear(self):
18 self.serial.reset_input_buffer()

Callers 13

writeMethod · 0.95
etx_passthrough_initFunction · 0.45
process_json_flagFunction · 0.45
process_build_flagFunction · 0.45
appendToFirmwareFunction · 0.45
appendConfigurationFunction · 0.45
generateUIDFunction · 0.45
patch_unifiedFunction · 0.45
bFunction · 0.45
writeFunction · 0.45
ensure_binaryFunction · 0.45
ensure_strFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected