mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
1 mb compiling version
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#ifdef uartEnable
|
||||
#include "SoftUART.h"
|
||||
#include "Global.h"
|
||||
|
||||
@@ -8,7 +9,7 @@ HardwareSerial* myUART = nullptr;
|
||||
#endif
|
||||
|
||||
void uartInit() {
|
||||
if (!jsonReadBool(configSetupJson, "uart")) {
|
||||
if (!jsonReadBool(configSetupJson, "uartEnable")) {
|
||||
return;
|
||||
}
|
||||
if (!myUART) {
|
||||
@@ -25,7 +26,7 @@ void uartInit() {
|
||||
|
||||
void uartHandle() {
|
||||
if (myUART) {
|
||||
if (!jsonReadBool(configSetupJson, "uart")) {
|
||||
if (!jsonReadBool(configSetupJson, "uartEnable")) {
|
||||
return;
|
||||
}
|
||||
static String incStr;
|
||||
@@ -50,4 +51,5 @@ void parse(String& incStr) {
|
||||
orderBuf += incStr;
|
||||
SerialPrint("I", "=>UART", incStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user