From c3c4f89efdd7be765c36877a9989fd32b88ea533 Mon Sep 17 00:00:00 2001 From: Rene 'Renne' Bartsch Date: Thu, 19 Jul 2018 21:18:20 +0200 Subject: [PATCH] Visual Studio specific compiler warning fixed. This commit fixes the Visual Studio compiler warning ``` D:/Sonoff-Tasmota-development.6.1.1b/sonoff/xsns_30_mpr121.ino:192:2: warning: 'typedef' was ignored in this declaration [enabled by default] }; ^ ``` --- sonoff/xsns_30_mpr121.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonoff/xsns_30_mpr121.ino b/sonoff/xsns_30_mpr121.ino index 0f27ccc59..cc4fba3ab 100644 --- a/sonoff/xsns_30_mpr121.ino +++ b/sonoff/xsns_30_mpr121.ino @@ -182,7 +182,8 @@ * and the indices of the arrays connected, running, current and previous to store sensor status and data of a specific sensor. * */ -typedef struct mpr121 { +typedef struct mpr121 mpr121; +struct mpr121 { const uint8_t i2c_addr[4] = { 0x5A, 0x5B, 0x5C, 0x5D }; /** I2C addresses of MPR121 controller */ const char id[4] = { 'A', 'B', 'C', 'D' }; /** Human-readable sensor IDs*/ bool connected[4] = { false, false, false, false }; /** Status if sensor is connected at I2C address */