From 8fda70643b47f5eaec555d2e5066ea3719ca942e Mon Sep 17 00:00:00 2001 From: Christopher Tremblay Date: Sun, 18 Oct 2020 05:19:04 -0700 Subject: [PATCH] Fix addressing & remove compile script - Fixed adderssing to start at 1 vs 0 - Removed my compile script --- c | 1 - tasmota/ezo.ino | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 c diff --git a/c b/c deleted file mode 100644 index b1aec06d5..000000000 --- a/c +++ /dev/null @@ -1 +0,0 @@ -platformio run -e tasmota --target upload --upload-port /dev/ttyS4 diff --git a/tasmota/ezo.ino b/tasmota/ezo.ino index a68a1981f..926fc334b 100644 --- a/tasmota/ezo.ino +++ b/tasmota/ezo.ino @@ -71,7 +71,7 @@ struct EZOStruct { // Figure out if we're trying to address a specific device // PS: This should ideally be done through the Tasmota mailbox if (at[0] == '-') { - uint32_t idx = atoi(&at[1]); + uint32_t idx = atoi(&at[1]) - 1; at = strchr(at, ' '); if (!at++) {