r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

firmware: I2c-th error in sensor setup is ignored #361

Closed pat1 closed 2 years ago

pat1 commented 2 years ago

sensors.isSetted() is used to log messages only in init_setup

broken sensor at boot that start to work after some time provide data without setup:

#         0 : N: Load configuration... [ OK ]
#         0 : N: --> type: i2c-th
#         2 : N: --> version: 3
#         4 : N: --> i2c address: 0x23 (35)
#         8 : N: --> oneshot: OFF
#        10 : N: --> continuous: ON
#        14 : N: --> i2c temperature address: 0x28 (40)
#        18 : N: --> i2c humidity address: 0x28 (40)
#        24 : N: Sensors...
#        26 : E: hyt2x1 setup... [ ERROR ]
#        30 : N: --> 1: I2C-HYT:     [ FAIL ]
#        34 : N: --> acquiring 15~15 samples in 1 minutes
#     48910 : N: R->
#     48910 : N: T-SMP: 29450
#     48910 : N: T-IST: 29450
#     48910 : N: T-MIN: 29449
#     48910 : N: T-MED: 29449
#     48910 : N: T-MAX: 29450
#     48910 : N: H-SMP: 42
#     48910 : N: H-IST: 42
#     48910 : N: H-MIN: 42
#     48910 : N: H-MED: 42
#     48910 : N: H-MAX: 42
#     48910 : N: R<-
#     52211 : N: R->