Set timeout of 1s on reads
This commit is contained in:
@ -218,7 +218,7 @@ int main() {
|
||||
if (!(baro=mgos_barometer_create_i2c(i2c, 0x60, BARO_MPL3115))) {
|
||||
LOG(LL_ERROR, ("Cannot create barometer"));
|
||||
} else {
|
||||
mgos_barometer_set_cache_ttl(baro, 0);
|
||||
mgos_barometer_set_cache_ttl(baro, 1000);
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
Reference in New Issue
Block a user