mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Rename HU/CD_ID and change to defines (never need to change at runtime)
This commit is contained in:
+2
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user