only:hellen-honda-k
This commit is contained in:
rusefillc 2023-04-03 13:52:23 -04:00
parent bbf756d941
commit 2a7436c090
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ void kLineThread(void*) {
totalBytes++;
}
if (len > 1) {
efiPrintf("hack 0x%02x 0x%02x", bufferIn[0], bufferIn[5]);
efiPrintf("hack 0x%02x 0x%02x", bufferIn[0], bufferIn[4]);
efiPrintf("ha 0x%02x 0x%02x", crc_hondak_calc(bufferIn, 4), bufferIn[2] & 0x80);
int crc = crc_hondak_calc(bufferIn, len - 1);
if (crc == bufferIn[len - 1]) {
@ -74,7 +74,7 @@ void kLineThread(void*) {
if (bufferIn[0] == HONDA_K_40_PACKET) {
handleHonda(bufferIn);
}
} else if (bufferIn[0] == HONDA_K_40_PACKET && bufferIn[5] == crc_hondak_calc(bufferIn, 4)) {
} else if (bufferIn[0] == HONDA_K_40_PACKET && bufferIn[4] == crc_hondak_calc(bufferIn, 4)) {
if (engineConfiguration->verboseKLine) {
efiPrintf("hack for now, happy CRC 0x%02x", crc);
}