在調(diào)用sscanf函數(shù),一直返回0,調(diào)用不成功,希望支持一下
? int temp=sscanf("$GNGGA,80317.000,3949.41188,N,11616.86033,E,1,07,4.3,66.1,M,-10.2,M,,*5C\r", "$GNGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c", \
&GPS.utc_time, &GPS.nmea_latitude, &GPS.ns, &GPS.nmea_longitude, &GPS.ew, &GPS.lock, &GPS.satelites, &GPS.hdop, &GPS.msl_altitude, &GPS.msl_units);
熱門產(chǎn)品 :
CH585: 集成高速USB和NFC的藍(lán)牙MCU