mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
set data_len to zero on payload error
This commit is contained in:
parent
80eefcdeea
commit
c9ce52c45c
1 changed files with 1 additions and 0 deletions
|
|
@ -456,6 +456,7 @@ struct Decoder
|
|||
}
|
||||
if (best < 0) {
|
||||
std::cerr << "payload decoding error." << std::endl;
|
||||
*len = 0;
|
||||
return;
|
||||
}
|
||||
int flips = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue