mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Refactor frame handling and response code
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user