Refactor frame handling and response code

This commit is contained in:
Allen Hill
2023-10-28 14:41:56 -04:00
parent 18ae9a48cc
commit fadd2c4259
3 changed files with 336 additions and 318 deletions
+2 -4
View File
@@ -62,10 +62,8 @@ int main() {
if (!BUS_IS_IDLE) {
AVCLAN_readframe();
} else {
// check command from HU
if (AVCLAN_responseNeeded())
AVCLAN_respond();
} else if (AVCLAN_responseNeeded()) {
AVCLAN_respond();
}
// Key handler