Skip to content

Commit

Permalink
Make printpm() conditional to avoid warnings about unused
Browse files Browse the repository at this point in the history
static function.
  • Loading branch information
posjodin committed Oct 10, 2017
1 parent 58842a5 commit 2e593ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/pms5003/pms5003.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ check_pmsframe(uint8_t *buf)
return pmssum == sum;
}
/*---------------------------------------------------------------------------*/
#ifdef DEBUG
static void
printpm()
{
Expand All @@ -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.
Expand Down

0 comments on commit 2e593ca

Please sign in to comment.