mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
Make printpm() conditional to avoid warnings about unused
static function.
This commit is contained in:
@@ -206,6 +206,7 @@ check_pmsframe(uint8_t *buf)
|
|||||||
return pmssum == sum;
|
return pmssum == sum;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#ifdef DEBUG
|
||||||
static void
|
static void
|
||||||
printpm()
|
printpm()
|
||||||
{
|
{
|
||||||
@@ -215,6 +216,7 @@ printpm()
|
|||||||
printf("PM1_ATM = %04d, PM2.5_ATM = %04d, PM10_ATM = %04d\n",
|
printf("PM1_ATM = %04d, PM2.5_ATM = %04d, PM10_ATM = %04d\n",
|
||||||
PM1_ATM, PM2_5_ATM, PM10_ATM);
|
PM1_ATM, PM2_5_ATM, PM10_ATM);
|
||||||
}
|
}
|
||||||
|
#endif /* DEBUG */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* Frame received from PMS sensor. Validate and update sensor data.
|
* Frame received from PMS sensor. Validate and update sensor data.
|
||||||
|
Reference in New Issue
Block a user