From 201618c9a9502667e6809e77dc8aef350441430b Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 2 Jan 2023 12:48:23 +0100 Subject: [PATCH] fix missing newline in esp32 code --- esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino | 2 +- esp32/EthernetUART/RemotePowerSwitch/RemotePowerSwitch.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino b/esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino index 7a26a12..204875a 100644 --- a/esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino +++ b/esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino @@ -331,7 +331,7 @@ void send_answer_hex(uint8_t *rxbuf, uint16_t v) { txbuf[9] = nib_to_hex(v, 0); txbuf[10] = '\n'; txbuf[11] = 0; - send_answer_buf(txbuf,10); + send_answer_buf(txbuf,11); } diff --git a/esp32/EthernetUART/RemotePowerSwitch/RemotePowerSwitch.ino b/esp32/EthernetUART/RemotePowerSwitch/RemotePowerSwitch.ino index 23318f9..5a83db9 100644 --- a/esp32/EthernetUART/RemotePowerSwitch/RemotePowerSwitch.ino +++ b/esp32/EthernetUART/RemotePowerSwitch/RemotePowerSwitch.ino @@ -257,7 +257,7 @@ void send_answer_hex(uint8_t *rxbuf, uint16_t v) { txbuf[9] = nib_to_hex(v, 0); txbuf[10] = '\n'; txbuf[11] = 0; - send_answer_buf(txbuf,10); + send_answer_buf(txbuf,11); } /***************************************************************** -- 2.43.0