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

Method __convert_to_str

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

Source from the content-addressed store, hash-verified

75
76
77 def __convert_to_str(self, data):
78 try:
79 return data.decode(encoding)
80 except UnicodeDecodeError:
81 return ""

Callers 1

read_lineMethod · 0.95

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected