modified for NuMaker_PFM series
Dependents: NuMaker-mbed-modbus-sample NuMaker_NuWicam_Lite NuMaker-mbed-modbus-sample
Fork of Modbus by
Diff: portserial.cpp
- Revision:
- 13:69ee21df79f1
- Parent:
- 12:59942e75caa6
- Child:
- 14:f55bf6e86868
--- a/portserial.cpp Thu Mar 23 18:17:00 2023 +0800 +++ b/portserial.cpp Tue May 02 17:47:16 2023 +0800 @@ -118,7 +118,7 @@ pc.set_rs485_mode(PB_8); #endif #endif -#if 0 //MBED_MAJOR_VERSION >= 6 +//#if 0 //MBED_MAJOR_VERSION >= 6 SerialBase::Parity parity; if (eParity == MB_PAR_NONE) parity = SerialBase::None; @@ -131,7 +131,7 @@ /* parity */ parity, /* stop bit */ 1 ); -#endif +//#endif return TRUE; }