1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

drivers/sds011: Fix SAUL read error return

This commit is contained in:
Leandro Lanzieri 2019-01-31 15:35:19 +01:00
parent 805efb69c5
commit af7220c2be

View File

@ -36,7 +36,7 @@ static int _read(const void *dev, phydat_t *res)
res->scale = -7;
return 2;
}
return ECANCELED;
return -ECANCELED;
}
const saul_driver_t sds011_saul_driver = {