From bf6ac243e5c1cd181b3c7a878e6dff7cc5e3744d Mon Sep 17 00:00:00 2001 From: reloxx13 Date: Sun, 28 Oct 2018 21:32:58 +0100 Subject: [PATCH 1/3] Update xsns_09_bmp2x.ino fix model detection --- sonoff/xsns_09_bmp2x.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonoff/xsns_09_bmp2x.ino b/sonoff/xsns_09_bmp2x.ino index 962d6e31e..9b6684bbd 100644 --- a/sonoff/xsns_09_bmp2x.ino +++ b/sonoff/xsns_09_bmp2x.ino @@ -449,8 +449,7 @@ void Bmp2xDetect() } if (success) { - GetTextIndexed(bmp2x_sensors[bmp2x_count].bmp_name, sizeof(bmp2x_sensors[bmp2x_count].bmp_name), i, kBmpTypes); - + GetTextIndexed(bmp2x_sensors[bmp2x_count].bmp_name, sizeof(bmp2x_sensors[bmp2x_count].bmp_name), bmp2x_sensors[bmp2x_count].bmp_model, kBmpTypes); snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, bmp2x_sensors[bmp2x_count].bmp_name, bmp2x_sensors[bmp2x_count].bmp_address); AddLog(LOG_LEVEL_DEBUG); bmp2x_count++; From 756bbc33cdd09d9c378e0c026715bd0fba1cb3bc Mon Sep 17 00:00:00 2001 From: reloxx13 Date: Sun, 28 Oct 2018 21:59:34 +0100 Subject: [PATCH 2/3] typos --- sonoff/xsns_09_bmp2x.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonoff/xsns_09_bmp2x.ino b/sonoff/xsns_09_bmp2x.ino index 9b6684bbd..8fcaa8874 100644 --- a/sonoff/xsns_09_bmp2x.ino +++ b/sonoff/xsns_09_bmp2x.ino @@ -1,5 +1,5 @@ /* - xsns_09_bmp.ino - BMP pressure, temperature, humidity and gas sensor support for Sonoff-Tasmota + xsns_09_bmp2x.ino - BMP pressure, temperature, humidity and gas sensor support for Sonoff-Tasmota Copyright (C) 2018 Heiko Krupp and Theo Arends @@ -43,7 +43,7 @@ const char kBmpTypes[] PROGMEM = "BMP1802X|BMP2802X|BME2802X|BME6802X"; uint8_t bmp_addresses[] = { BMP_ADDR1, BMP_ADDR2 }; uint8_t bmp2x_count = 0; -struct BMP2xSTRUCT { +struct BMP2XSTRUCT { uint8_t bmp_address; // I2C bus address char bmp_name[9]; // Sensor name - "BMPXXX2x" uint8_t bmp_type = 0; From 82efaccc910bcf2f050199559cf016bf2c895200 Mon Sep 17 00:00:00 2001 From: reloxx13 Date: Sun, 28 Oct 2018 22:00:12 +0100 Subject: [PATCH 3/3] typo2 --- sonoff/xsns_09_bmp2x.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xsns_09_bmp2x.ino b/sonoff/xsns_09_bmp2x.ino index 8fcaa8874..f0e95168c 100644 --- a/sonoff/xsns_09_bmp2x.ino +++ b/sonoff/xsns_09_bmp2x.ino @@ -618,5 +618,5 @@ boolean Xsns09(byte function) return result; } -#endif // USE_BMP +#endif // USE_BMP2X #endif // USE_I2C