Update frsky.c

fixed compiling issue
This commit is contained in:
Samuel Brucksch 2015-04-08 10:48:22 +02:00
parent 07294f4d3a
commit 8f165e5224
1 changed files with 2 additions and 2 deletions

View File

@ -245,10 +245,10 @@ static void sendSpeed(void)
//Speed should be sent in knots (GPS speed is in cm/s) //Speed should be sent in knots (GPS speed is in cm/s)
sendDataHead(ID_GPS_SPEED_BP); sendDataHead(ID_GPS_SPEED_BP);
//convert to knots: 1cm/s = 0.0194384449 knots //convert to knots: 1cm/s = 0.0194384449 knots
serialize16(uint16_t(GPS_speed * 0.0194384449)); serialize16((uint16_t)(GPS_speed * 0.0194384449));
sendDataHead(ID_GPS_SPEED_AP); sendDataHead(ID_GPS_SPEED_AP);
//get 2 digits for AP //get 2 digits for AP
serialize16(uint16_t((GPS_speed * 0.0194384449)*100)%100); serialize16((uint16_t)((GPS_speed * 0.0194384449)*100)%100);
} }
#endif #endif