From 46d0bd34258d323f1cab72b8616190ec81d0fb11 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 30 May 2026 15:59:02 +0200 Subject: [PATCH] Fix sensirion SEN6X intermittend detection --- tasmota/tasmota_xsns_sensor/xsns_119_sen6x.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_119_sen6x.ino b/tasmota/tasmota_xsns_sensor/xsns_119_sen6x.ino index dbd199749..62b63a4ff 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_119_sen6x.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_119_sen6x.ino @@ -169,8 +169,10 @@ void Sen6xInit(void) { } sen6x.begin(I2cGetWire(bus), SEN6X_I2C_ADDR_6B); - if (Sen6xError("Reset", sen6x.deviceReset())) { // Performs delay(1200) if no error - continue; + if (sen6x.deviceReset()) { // Performs delay(1200) if no error + if (Sen6xError("Reset", sen6x.deviceReset())) { // See https://github.com/arendst/Tasmota/discussions/24452 + continue; + } } uint8_t major;