mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
SDS0X1 minor code cleanup
This commit is contained in:
parent
f11386cfe7
commit
ff13223807
@ -114,7 +114,9 @@ void NovaSdsInit()
|
|||||||
NovaSdsSerial = new TasmotaSerial(pin[GPIO_SDS0X1_RX], pin[GPIO_SDS0X1_TX], 1);
|
NovaSdsSerial = new TasmotaSerial(pin[GPIO_SDS0X1_RX], pin[GPIO_SDS0X1_TX], 1);
|
||||||
|
|
||||||
if (NovaSdsSerial->begin(9600)) {
|
if (NovaSdsSerial->begin(9600)) {
|
||||||
if (NovaSdsSerial->hardwareSerial()) ClaimSerial();
|
if (NovaSdsSerial->hardwareSerial()) {
|
||||||
|
ClaimSerial();
|
||||||
|
}
|
||||||
novasds_type = 1;
|
novasds_type = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,8 +139,8 @@ void NovaSdsStop()
|
|||||||
NovaSdsSerial->flush();
|
NovaSdsSerial->flush();
|
||||||
// drain any old data
|
// drain any old data
|
||||||
while (NovaSdsSerial->available()) {
|
while (NovaSdsSerial->available()) {
|
||||||
NovaSdsSerial->read();
|
NovaSdsSerial->read();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user