Hands-On GPS Firmware Development

Status macro

  • GPS

2 comments

teo
2 months ago

They were the same.Anyway,I managed to solve the problem by simply replacing the macro with a simple function like this: gps_nmea_status_t return_status(gps_data_t* gps_data,gps_nmea_status_t st)
{
gps_data->status = st;
return st;
}

TeachingAssistant
2 months ago

Hi,
download the source code and compare the two codes.