PUD: follow-up for 5addf68
[olsrd.git] / lib / pud / src / receiver.c
index 4b35986..396e4c3 100644 (file)
@@ -911,6 +911,7 @@ bool startReceiver(void) {
        }
 
        nmea_zero_INFO(&transmitGpsInformation.txPosition.nmeaInfo);
+       memcpy(&transmitGpsInformation.txGateway, &olsr_cnf->main_addr, olsr_cnf->ipsize);
        transmitGpsInformation.updated = false;
 
        nmea_zero_INFO(&txPosition.nmeaInfo);
@@ -958,6 +959,7 @@ void stopReceiver(void) {
 
        transmitGpsInformation.updated = false;
        nmea_zero_INFO(&transmitGpsInformation.txPosition.nmeaInfo);
+       memcpy(&transmitGpsInformation.txGateway, &olsr_cnf->main_addr, olsr_cnf->ipsize);
 
        nmea_parser_destroy(&nmeaParser);