Implemented packet logging

This commit is contained in:
Mark Qvist 2019-11-03 15:55:35 +01:00
parent 768edd2f5d
commit e80db61859
5 changed files with 134 additions and 7 deletions

View file

@ -152,7 +152,8 @@ bool update_entropy_index(void) {
UINT written = 0;
crypto_fr = f_write(&crypto_fp, crypto_fb, sizeof(entropy_index), &written);
f_close(&crypto_fp);
if (crypto_fr == FR_OK && written == sizeof(entropy_index)) {
return true;
}