Skip to content

Commit

Permalink
Firmware revision 12 (patch 2)
Browse files Browse the repository at this point in the history
Fix missing CRC in native serial telemetry
  • Loading branch information
neoxic committed Nov 20, 2024
1 parent e45fa16 commit 8458887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ static int serialreq(char a, int x) {
iobuf[8] = x = min(ertm, 0xffff);
iobuf[9] = x >> 8;
iobuf[10] = crc8(iobuf, 10);
return 10;
return 11;
case 0x9: return serialresp(min(ertm, 0xffff)); // Electrical revolution time (us)
case 0xa: return serialresp(temp1); // ESC temperature (C)
case 0xb: return serialresp(temp2); // Motor temperature (C)
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "common.h"

#define REVISION 12
#define REVPATCH 1
#define REVPATCH 2

const Cfg cfgdata = {
.id = 0x32ea,
Expand Down

0 comments on commit 8458887

Please sign in to comment.