From 72a36aaf31df2b4981800a7d11b073fe287b5aa0 Mon Sep 17 00:00:00 2001 From: Kevin Jahaziel Leon Morales Date: Sat, 1 Feb 2025 19:53:05 -0600 Subject: [PATCH] fix(liveSpectrumScan.py) Add unicode message --- extras/SX126x_Spectrum_Scan/liveSpectrumScan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extras/SX126x_Spectrum_Scan/liveSpectrumScan.py b/extras/SX126x_Spectrum_Scan/liveSpectrumScan.py index 7fc92cfb..11c3b1ea 100644 --- a/extras/SX126x_Spectrum_Scan/liveSpectrumScan.py +++ b/extras/SX126x_Spectrum_Scan/liveSpectrumScan.py @@ -170,6 +170,10 @@ class SpectrumScan: except serial.SerialException as e: LOG_WARNING(e) continue + except UnicodeDecodeError as e: + LOG_WARNING("Please check the baud rate, as using a different value than the one set on the device may cause errors.") + LOG_ERROR(e) + continue com.reset_input_buffer() com.reset_output_buffer()