devehe / stm32flash

Automatically exported from code.google.com/p/stm32flash
1 stars 7 forks source link

Fix file open to actually turn on inbound parity checking. #72

Open mwm opened 8 years ago

mwm commented 8 years ago

The INPCK bit is an i_flag bit, not a c_flag bit as originally done here. I have no idea what setting INPCK in c_flag does on Linux, but on FreeBSD it caused the test of the c_values after they were set to fail. This fixes that, and presumably the serial interface will now actually check the parity of incoming data.