1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/sgp30: unused variable when DEVELHELP=0

This commit is contained in:
Francisco Molina 2021-04-09 18:19:33 +02:00
parent 6ee94bdcdf
commit 7079525b35
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

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),