1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

Merge pull request #16297 from fjmolinas/pr_sgp30_unused_var

drivers/sgp30: unused variable when DEVELHELP=0
This commit is contained in:
Kaspar Schleiser 2021-04-09 21:54:21 +02:00 committed by GitHub
commit 0397cab91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,7 @@ int sgp30_reset(sgp30_t *dev)
int sgp30_read_serial_number(sgp30_t *dev, uint8_t *buf, size_t len)
{
(void) len;
assert(dev && buf && (len == SGP30_SERIAL_ID_LEN));
uint8_t frame[9];
if (_rx_tx_data(dev, SGP30_CMD_READ_SERIAL, (uint8_t *)frame, sizeof(frame),