toskyRocker / Arduino_Parser_Ublox_Neo_M8N

Simple C++ library to parse U-Blox Neo M8N strings.
30 stars 21 forks source link

int hms should be long hms #3

Open WilsonChang opened 4 years ago

WilsonChang commented 4 years ago
while(tok.next(token, 20))
{
    switch(counter)
    {
    case 1: //time
    {
        float time = atof(token);
        int hms = int(time);  // I test and found here should use long hms, otherwise error.