Rename HU/CD_ID and change to defines (never need to change at runtime)

This commit is contained in:
Allen Hill
2023-10-28 14:36:02 -04:00
parent 326d4ced99
commit 5b97eff725
3 changed files with 22 additions and 18 deletions
+2 -3
View File
@@ -131,8 +131,6 @@
#define TCB_CNTMODE TCB_CNTMODE_PW_gc
#endif
uint16_t CD_ID;
uint16_t HU_ID;
uint8_t printAllFrames;
uint8_t verbose;
@@ -623,7 +621,8 @@ uint8_t AVCLAN_readframe() {
return 0;
}
uint8_t shouldACK = !AVCLAN_ismuted() && (frame.peripheral_addr == CD_ID);
uint8_t shouldACK =
!AVCLAN_ismuted() && (frame.peripheral_addr == DEVICE_ADDR);
if (shouldACK)
AVCLAN_sendbit_ACK();