Skip to content

Commit 9085838

Browse files
committed
Fix ESP8266- Use MEMSET for init
1 parent 0bef3da commit 9085838

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/gps/model.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ wippersnapper_gps_GPSConfig *GPSModel::GetGPSConfigMsg() {
5555
* you are creating a NEW gps event, not modifying an existing one.
5656
*/
5757
void GPSModel::CreateGPSEvent() {
58-
// Zero-out whatever was previously in the GPSEvent message
58+
// Zero-out the GPSEvent message
5959
memset(&_msg_gps_event, 0, sizeof(_msg_gps_event));
60-
// Create new GPSEvent message with initializer
61-
_msg_gps_event = wippersnapper_gps_GPSEvent_init_zero;
6260
_msg_gps_event.gga_responses_count = 0;
6361
_msg_gps_event.rmc_responses_count = 0;
6462
}

0 commit comments

Comments
 (0)