mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
appear as speaker instead of headset
This commit is contained in:
@@ -62,7 +62,7 @@ def map_null_terminated_utf8_string(utf8_bytes):
|
||||
try:
|
||||
terminator = utf8_bytes.find(0)
|
||||
if terminator < 0:
|
||||
return utf8_bytes
|
||||
terminator = len(utf8_bytes)
|
||||
return utf8_bytes[0:terminator].decode('utf8')
|
||||
except UnicodeDecodeError:
|
||||
return utf8_bytes
|
||||
|
||||
Reference in New Issue
Block a user