Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RS485.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ byte crc8 (const char *addr)
inbyte >>= 1;
} // end of for
} // end of while

//ADDED FOR PROBLEMS WITH crc = STX or ETX
if(crc==STX || crc==ETX) crc=crc-2;

return crc;
} // end of crc8

Expand Down