mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correctly handle the talkerId
This commit is contained in:
@@ -38,7 +38,7 @@ N2kDataToNMEA0183::N2kDataToNMEA0183(GwLog * logger, GwBoatData *boatData, tNMEA
|
||||
SendNMEA0183MessageCallback=0;
|
||||
this->SendNMEA0183MessageCallback=callback;
|
||||
strncpy(this->talkerId,talkerId.c_str(),2);
|
||||
talkerId[2]=0;
|
||||
this->talkerId[2]=0;
|
||||
sourceId=id;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ private:
|
||||
updateDouble(boatData->TWS, WindSpeed);
|
||||
}
|
||||
|
||||
if (NMEA0183SetMWV(NMEA0183Msg, formatCourse(WindAngle), NMEA0183Reference, WindSpeed))
|
||||
if (NMEA0183SetMWV(NMEA0183Msg, formatCourse(WindAngle), NMEA0183Reference, WindSpeed,talkerId))
|
||||
SendMessage(NMEA0183Msg);
|
||||
|
||||
if (WindReference == N2kWind_Apparent && boatData->SOG->isValid())
|
||||
|
||||
Reference in New Issue
Block a user