[Firebug-cvs] fireboard/beta/tools/src/xlisten/boards fireboard.c,1.6,1.7
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2005-06-01 00:22:56
|
Update of /cvsroot/firebug/fireboard/beta/tools/src/xlisten/boards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14559/boards Modified Files: fireboard.c Log Message: Fixed cast error for AM_GGA_DATA for pg logging. Index: fireboard.c =================================================================== RCS file: /cvsroot/firebug/fireboard/beta/tools/src/xlisten/boards/fireboard.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fireboard.c 31 May 2005 23:49:40 -0000 1.6 --- fireboard.c 1 Jun 2005 00:22:47 -0000 1.7 *************** *** 770,773 **** --- 770,776 ---- + // drop table fireboard_results; + // drop table fireboard_results_l; + /** * Logs raw readings to a Postgres database. *************** *** 861,865 **** } case AM_GGA_DATA:{ ! XSensorMTS420GPSData *data = (XSensorMTS420GPSData *)packet->data; sprintf(command, "INSERT into %s " --- 864,868 ---- } case AM_GGA_DATA:{ ! GGA_Data * data = (GGA_Data*)packet->data; sprintf(command, "INSERT into %s " *************** *** 867,871 **** "Latitudedegree,Latitudeminutes,Longitudedegree,Longitudeminute," "NSEWind,Fixed)" ! " values (now(),%u,%u,%u,%u,%f,%u,%f,%u,%f,%u,%u)", table, //timestring, --- 870,874 ---- "Latitudedegree,Latitudeminutes,Longitudedegree,Longitudeminute," "NSEWind,Fixed)" ! " values (now(),%u,%u,%u,%u,%f,%u,%f,%u,%f,%u)", table, //timestring, *************** *** 873,878 **** data->hours, data->minutes, data->dec_sec, data->Lat_deg, data->Lat_dec_min, ! data->Long_deg, data->Long_dec_min, data->NSEWind,data->Fixed ! ); break; } --- 876,880 ---- data->hours, data->minutes, data->dec_sec, data->Lat_deg, data->Lat_dec_min, ! data->Long_deg, data->Long_dec_min, data->NSEWind); break; } |