mirror of https://github.com/EspoTek/Labrador.git
Update uartstyledecoder.cpp
This commit is contained in:
parent
80b4d04843
commit
525b03de1c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue