Rev 28 | Rev 30 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 28 | Rev 29 | ||
---|---|---|---|
Line 90... | Line 90... | ||
90 | // every time we receive GPRMC, forward the text line to the USB driver |
90 | // every time we receive GPRMC, forward the text line to the USB driver |
91 | setRmcCallback (&rmc_callback); |
91 | setRmcCallback (&rmc_callback); |
92 | 92 | ||
93 | // initialise IMU operations |
93 | // initialise IMU operations |
94 | IMU.begin (); |
94 | IMU.begin (); |
95 | - | ||
96 | } |
95 | } |
97 | 96 | ||
98 | char fontBuf[] = "01234567"; |
97 | char fontBuf[] = "01234567"; |
99 | extern "C" void |
98 | extern "C" void |
100 | cc_run (struct bmp280_dev *bmp, struct bmp280_dev *bmp2) |
99 | cc_run (struct bmp280_dev *bmp, struct bmp280_dev *bmp2) |
Line 240... | Line 239... | ||
240 | { |
239 | { |
241 | rslt2 = bmp280_get_comp_temp_32bit (&temp32_out, |
240 | rslt2 = bmp280_get_comp_temp_32bit (&temp32_out, |
242 | ucomp_data2.uncomp_temp, |
241 | ucomp_data2.uncomp_temp, |
243 | bmp2); |
242 | bmp2); |
244 | } |
243 | } |
- | 244 | else |
|
- | 245 | { |
|
- | 246 | /// try to reset the device, its playing up |
|
- | 247 | resetBmp2 (); |
|
- | 248 | ||
- | 249 | } |
|
245 | 250 | ||
246 | if (rslt == BMP280_OK) |
251 | if (rslt == BMP280_OK) |
247 | { |
252 | { |
248 | /* Getting the 32 bit compensated temperature */ |
253 | /* Getting the 32 bit compensated temperature */ |
249 | rslt = bmp280_get_comp_temp_32bit (&temp32, |
254 | rslt = bmp280_get_comp_temp_32bit (&temp32, |