diff --git a/dev/pms5003/pms5003.c b/dev/pms5003/pms5003.c index 2f1f35d64..792a6a91d 100644 --- a/dev/pms5003/pms5003.c +++ b/dev/pms5003/pms5003.c @@ -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.