Make printpm() conditional to avoid warnings about unused

static function.
This commit is contained in:
Peter Sjodin 2017-06-16 13:07:19 +02:00
parent 58842a57b8
commit 2e593ca6e4

View File

@ -206,6 +206,7 @@ check_pmsframe(uint8_t *buf)
return pmssum == sum;
}
/*---------------------------------------------------------------------------*/
#ifdef DEBUG
static void
printpm()
{
@ -215,6 +216,7 @@ printpm()
printf("PM1_ATM = %04d, PM2.5_ATM = %04d, PM10_ATM = %04d\n",
PM1_ATM, PM2_5_ATM, PM10_ATM);
}
#endif /* DEBUG */
/*---------------------------------------------------------------------------*/
/**
* Frame received from PMS sensor. Validate and update sensor data.