mirror of https://github.com/EspoTek/Labrador.git
Update uartstyledecoder.cpp
This commit is contained in:
parent
80b4d04843
commit
525b03de1c
|
@ -230,9 +230,8 @@ void uartStyleDecoder::setParityMode(UartParity newParity)
|
|||
|
||||
bool uartStyleDecoder::isParityCorrect(uint32_t bitField) const
|
||||
{
|
||||
if (parity == UartParity::None)
|
||||
std::terminate();
|
||||
|
||||
assert(parity != UartParity::None);
|
||||
|
||||
return parityOf(bitField) == parity;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue