BMP_PRESSURE,
};
+byte bmp_request;
static byte bmp_state = BMP_IDLE;
static u16 raw_temp;
static u32 raw_press;
switch (bmp_state)
{
case BMP_IDLE:
+ if (!bmp_request)
+ return;
+ bmp_request = 0;
bmp_debug("BMP: Start measure\n");
bmp_start_measure(0x2e);
bmp_state++;