mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-26 17:04:20 +00:00
Increased RX serial buff
This commit is contained in:
@@ -219,7 +219,7 @@ bool AmsData::isTwoPhase() {
|
||||
}
|
||||
|
||||
int8_t AmsData::getLastError() {
|
||||
return lastErrorCount > 1 ? lastError : 0;
|
||||
return lastErrorCount > 2 ? lastError : 0;
|
||||
}
|
||||
|
||||
void AmsData::setLastError(int8_t lastError) {
|
||||
|
||||
@@ -758,7 +758,7 @@ void setupHanPort(GpioConfig& gpioConfig, uint32_t baud, uint8_t parityOrdinal,
|
||||
}
|
||||
#endif
|
||||
|
||||
//hwSerial->setRxBufferSize(768);
|
||||
hwSerial->setRxBufferSize(768);
|
||||
#if defined(ESP32)
|
||||
hwSerial->onReceiveError(rxerr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user