mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Merge pull request #229 from biveraxe/ver4dev
Мелкие баги исправляем в модулях
This commit is contained in:
@@ -20,6 +20,7 @@ class Pwm8266 : public IoTItem {
|
||||
|
||||
IoTgpio.pinMode(_pin, OUTPUT);
|
||||
analogWriteFreq(_freq);
|
||||
analogWriteResolution(10);
|
||||
IoTgpio.analogWrite(_pin, value.valD);
|
||||
|
||||
jsonRead(parameters, "apin", _apin);
|
||||
|
||||
@@ -37,7 +37,7 @@ class UART : public IoTItem {
|
||||
#endif
|
||||
#ifdef ESP32
|
||||
_myUART = new HardwareSerial(2);
|
||||
_myUART->begin(speed, SERIAL_8N1, rx, tx);
|
||||
_myUART->begin(_speed, SERIAL_8N1, _rx, _tx);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user