Update uartstyledecoder.cpp

This commit is contained in:
Chris Esposito 2019-03-19 17:53:56 +11:00 committed by GitHub
parent 80b4d04843
commit 525b03de1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -230,8 +230,7 @@ void uartStyleDecoder::setParityMode(UartParity newParity)
bool uartStyleDecoder::isParityCorrect(uint32_t bitField) const bool uartStyleDecoder::isParityCorrect(uint32_t bitField) const
{ {
if (parity == UartParity::None) assert(parity != UartParity::None);
std::terminate();
return parityOf(bitField) == parity; return parityOf(bitField) == parity;
} }