NMEA2000 manufacturer names and a bit more logging

This commit is contained in:
2026-01-31 15:14:26 +01:00
parent 2eabe931d8
commit 3729fcb0f1
4 changed files with 247 additions and 37 deletions

View File

@@ -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)