Skip to content

Commit 390c9d6

Browse files
LeTo37dakejahl
andauthored
SHT3X driver: change state timer variable from uint32 to uint64. (#24264)
Prevents current behaviour of repeated entry into 'init' state and associated log spamming after +-72 minutes. Signed-off-by: LeTo37 <[email protected]> Co-authored-by: Jacob Dahl <[email protected]>
1 parent 63c4f4a commit 390c9d6

File tree

1 file changed

+1
-1
lines changed
  • src/drivers/hygrometer/sht3x

1 file changed

+1
-1
lines changed

src/drivers/hygrometer/sht3x/sht3x.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class SHT3X : public device::I2C, public ModuleParams, public I2CSPIDriver<SHT3X
110110

111111
float measured_temperature = 0;
112112
float measured_humidity = 0;
113-
uint32_t measurement_time = 0;
113+
uint64_t measurement_time = 0;
114114
uint16_t measurement_index = 0;
115115

116116
sht_info _sht_info;

0 commit comments

Comments
 (0)