From a68b143e549b43d14097da69a2202a1a577efe19 Mon Sep 17 00:00:00 2001 From: biver Date: Tue, 28 Mar 2023 09:14:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D0=BC=20class=20UART?= =?UTF-8?q?=20=D0=B2=20IoTmUART,=20=D1=82.=D0=BA.=20=D0=B8=D0=BC=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B1=D1=80=D0=BE=D0=BD=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/sensors/UART/Uart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/sensors/UART/Uart.cpp b/src/modules/sensors/UART/Uart.cpp index 1f8708ca..27bc898e 100644 --- a/src/modules/sensors/UART/Uart.cpp +++ b/src/modules/sensors/UART/Uart.cpp @@ -11,7 +11,7 @@ HardwareSerial* myUART = nullptr; #endif -class UART : public IoTItem { +class IoTmUART : public IoTItem { private: int _eventFormat = 0; // 0 - нет приема, 1 - json IoTM, 2 - Nextion char _inc; @@ -26,7 +26,7 @@ class UART : public IoTItem { #endif public: - UART(String parameters) : IoTItem(parameters) { + IoTmUART(String parameters) : IoTItem(parameters) { int _tx, _rx, _speed, _line; jsonRead(parameters, "tx", _tx); jsonRead(parameters, "rx", _rx); @@ -351,7 +351,7 @@ class UART : public IoTItem { void* getAPI_UART(String subtype, String param) { if (subtype == F("UART")) { - return new UART(param); + return new IoTmUART(param); } else { return nullptr; }