fix(liveSpectrumScan.py) Add unicode message
This commit is contained in:
parent
52031b9c36
commit
72a36aaf31
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue