mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/incorrect_console_input_decoding_wifi_prov_mgr_v5.3' into 'release/v5.3'
fix(tools/esp_prov): Fix incorrect input decoding when using console transport (v5.3) See merge request espressif/esp-idf!31689
This commit is contained in:
commit
f0ba6eb94c
@ -1,8 +1,7 @@
|
||||
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from utils import hex_str_to_bytes, str_to_bytes
|
||||
from utils import str_to_bytes
|
||||
|
||||
from .transport import Transport
|
||||
|
||||
@ -16,4 +15,4 @@ class Transport_Console(Transport):
|
||||
except Exception as err:
|
||||
print('error:', err)
|
||||
return None
|
||||
return hex_str_to_bytes(resp)
|
||||
return bytearray.fromhex(resp).decode('latin-1')
|
||||
|
Loading…
Reference in New Issue
Block a user