mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
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] }; ^ ```
This commit is contained in:
parent
dbf84d7813
commit
c3c4f89efd
@ -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.
|
* 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 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*/
|
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 */
|
bool connected[4] = { false, false, false, false }; /** Status if sensor is connected at I2C address */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user