Просмотр исходного кода

Correct print statement when LRC is wrong

Eric Betts 1 год назад
Родитель
Сommit
9688c4851f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ccid.c

+ 1 - 1
ccid.c

@@ -265,7 +265,7 @@ size_t seader_ccid_process(Seader* seader, uint8_t* cmd, size_t cmd_len) {
             FURI_LOG_W(
             FURI_LOG_W(
                 TAG,
                 TAG,
                 "Invalid LRC.  Recv: %02x vs Calc: %02x",
                 "Invalid LRC.  Recv: %02x vs Calc: %02x",
-                cmd[2 + 10 + message.dwLength + 1],
+                cmd[2 + 10 + message.dwLength],
                 seader_calc_lrc(cmd, 2 + 10 + message.dwLength));
                 seader_calc_lrc(cmd, 2 + 10 + message.dwLength));
             // TODO: Should I respond with an error?
             // TODO: Should I respond with an error?
             return message.consumed;
             return message.consumed;