Renamed i2c to twi.

This commit is contained in:
Martin Preuss
2023-02-05 15:39:15 +01:00
parent e5219b2796
commit a9a81c8515
2 changed files with 3 additions and 3 deletions

View File

@@ -133,13 +133,13 @@ void _packetReceived(AQH_SERIAL *sr, AQH_MSG *msg)
AQH_MsgSendStats_DumpToBuffer(msg, dbuf, "received");
fprintf(stdout, "%s", GWEN_Buffer_GetStart(dbuf));
}
else if (msgType==30) { /* CPRO_CMD_I2CBUSMEMBER */
else if (msgType==AQH_MSG_TYPE_TWIBUSMEMBER) { /* CPRO_CMD_TWIBUSMEMBER */
int i2cAddr;
int availability;
i2cAddr=ptr[4];
availability=ptr[5];
fprintf(stdout, "-> I2C DEVICE %02x: %s\n", i2cAddr, (availability==0)?"not available":"FOUND");
fprintf(stdout, "-> TWI DEVICE %02x: %s\n", i2cAddr, (availability==0)?"not available":"FOUND");
}
else if (msgType==40) { /* CPRO_CMD_DEBUG */
uint8_t param1;

View File

@@ -30,7 +30,7 @@
#define AQH_MSG_TYPE_PONG 11
#define AQH_MSG_TYPE_COMSENDSTATS 20
#define AQH_MSG_TYPE_COMRECVSTATS 21
#define AQH_MSG_TYPE_I2CBUSMEMBER 30
#define AQH_MSG_TYPE_TWIBUSMEMBER 30
#define AQH_MSG_TYPE_DEBUG 40
#define AQH_MSG_TYPE_VALUE 50
#define AQH_MSG_TYPE_NEED_ADDRESS 60