]> mj.ucw.cz Git - home-hw.git/blobdiff - usb/Src/bmp085.c
USB: Do not forget to allocate PMA
[home-hw.git] / usb / Src / bmp085.c
index 9b241a6f068bb1961c01e8c9a0c986cd27c20a80..c5712c962adc4e5368839a4dd2d8e403b3591ae0 100644 (file)
@@ -166,6 +166,7 @@ static u16 raw_temp;
 static u32 raw_press;
 int adjusted_temp;
 int adjusted_press;
+u32 bmp_counter;
 
 void bmp_step(void)
 {
@@ -201,6 +202,7 @@ void bmp_step(void)
       bmp_debug("BMP: Raw pressure: %06x\n", raw_press);
       bmp_recalc(raw_temp, raw_press, BMP_OSS, bmp_constants, &adjusted_temp, &adjusted_press);
       bmp_debug("BMP: Adjusted temp %d, press %d\n", adjusted_temp, adjusted_press);
+      bmp_counter++;
       bmp_state = BMP_IDLE;
       break;
     }