mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-19 09:17:18 +02:00
RPI: properly catch exception when crc8 check failed
This commit is contained in:
parent
99c2b9f7a9
commit
f332738ceb
2 changed files with 6 additions and 6 deletions
|
@ -203,7 +203,7 @@ class InverterPacketFragment:
|
|||
|
||||
# check crc8
|
||||
if f_crc8(payload[:-1]) != payload[-1]:
|
||||
raise BufferError('Frame kaputt')
|
||||
raise BufferError('Frame corrupted - crc8 check failed')
|
||||
|
||||
self.ch_rx = ch_rx
|
||||
self.ch_tx = ch_tx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue