add error checking while emulating parity in tty2comKm
add error checking while emulating parity in tty2comKm

RishiGupta12/serial-communication-manager,RishiGupta12/serial-communication-manager,RishiGupta12/SerialPundit,RishiGupta12/SerialPundit,akuhtz/serial-communication-manager,RishiGupta12/SerialPundit,akuhtz/serial-communication-manager,akuhtz/serial-communication-manager,RishiGupta12/SerialPundit,RishiGupta12/serial-communication-manager,akuhtz/serial-communication-manager