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()