Skip to content

Commit 8b4a712

Browse files
committed
Merge branch 'fix/incorrect_console_input_decoding_wifi_prov_mgr' into 'master'
fix(tools/esp_prov): Fix incorrect input decoding when using console transport Closes IDFGH-13068 See merge request espressif/esp-idf!31659
2 parents 4e74160 + a31618b commit 8b4a712

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/esp_prov/transport/transport_console.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
1+
# SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
22
# SPDX-License-Identifier: Apache-2.0
33
#
4-
5-
from utils import hex_str_to_bytes, str_to_bytes
4+
from utils import str_to_bytes
65

76
from .transport import Transport
87

@@ -16,4 +15,4 @@ async def send_data(self, path, data, session_id=0):
1615
except Exception as err:
1716
print('error:', err)
1817
return None
19-
return hex_str_to_bytes(resp)
18+
return bytearray.fromhex(resp).decode('latin-1')

0 commit comments

Comments
 (0)