kopia lustrzana https://github.com/M17-Project/M17_Implementations
zero out (reset) digest at FN=0
rodzic
1538db6043
commit
28c510af26
|
@ -267,6 +267,9 @@ int main(int argc, char* argv[])
|
||||||
//if the stream is signed
|
//if the stream is signed
|
||||||
if(signed_str && fn<0x7FFC)
|
if(signed_str && fn<0x7FFC)
|
||||||
{
|
{
|
||||||
|
if(fn==0)
|
||||||
|
memset(digest, 0, sizeof(digest));
|
||||||
|
|
||||||
for(uint8_t i=0; i<sizeof(digest); i++)
|
for(uint8_t i=0; i<sizeof(digest); i++)
|
||||||
digest[i]^=frame_data[3+i];
|
digest[i]^=frame_data[3+i];
|
||||||
uint8_t tmp=digest[0];
|
uint8_t tmp=digest[0];
|
||||||
|
|
Ładowanie…
Reference in New Issue