NMEA2000 manufacturer names and a bit more logging
This commit is contained in:
@@ -500,7 +500,7 @@ void print_n2k_devicelist() {
|
||||
}
|
||||
|
||||
// rename to: void sendSwitchBank()
|
||||
void SendToN2K(uint8_t keycode) {
|
||||
void send_switchbank(uint8_t keycode) {
|
||||
tN2kMsg N2kMsg;
|
||||
tN2kBinaryStatus bankstatus;
|
||||
N2kResetBinaryStatus(bankstatus);
|
||||
@@ -575,9 +575,9 @@ void loop() {
|
||||
// Send key code to destination
|
||||
atariKeyclick();
|
||||
if ((event.pressType == ButtonPressType::SHORT)) {
|
||||
SendToN2K(keycode[event.buttonId]);
|
||||
send_switchbank(keycode[event.buttonId]);
|
||||
} else if ((event.pressType == ButtonPressType::MEDIUM)) {
|
||||
SendToN2K(longcode[event.buttonId]);
|
||||
send_switchbank(longcode[event.buttonId]);
|
||||
}
|
||||
// Debug:
|
||||
if ((event.buttonId == BUTTON_1)
|
||||
|
||||
Reference in New Issue
Block a user