libtest: fixed a bug.

This commit is contained in:
Martin Preuss
2023-01-30 01:03:24 +01:00
parent b34f3ce2cb
commit 8eba9a7b6d

View File

@@ -140,8 +140,13 @@ void _packetReceived(AQH_SERIAL *sr, const uint8_t *ptr, uint8_t len)
availability=ptr[5];
fprintf(stdout, "-> I2C DEVICE %02x: %s\n", i2cAddr, (availability==0)?"not available":"FOUND");
}
else if (ptr[5]==1) {
fprintf(stdout, "-> Debug\n");
else if (ptr[2]==5) {
uint8_t param1;
uint8_t param2;
param1=ptr[4];
param2=ptr[5];
fprintf(stdout, "-> Debug param1=%02x, param2=%02x\n", param1, param2);
}
}