Skip to content

Commit

Permalink
Merge branch 'fix/incorrect_console_input_decoding_wifi_prov_mgr_v5.3…
Browse files Browse the repository at this point in the history
…' 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
  • Loading branch information
mahavirj committed Jul 25, 2024
2 parents 99467a1 + 7e1bdbd commit f0ba6eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/esp_prov/transport/transport_console.py
Original file line number Diff line number Diff line change
@@ -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

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

0 comments on commit f0ba6eb

Please sign in to comment.