modified for NuMaker_PFM series

Dependents:   NuMaker-mbed-modbus-sample NuMaker_NuWicam_Lite NuMaker-mbed-modbus-sample

Fork of Modbus by Wayne Lin

Files at this revision

API Documentation at this revision

Comitter:
shliu1@nuvoton.com
Date:
Tue May 02 17:47:16 2023 +0800
Parent:
12:59942e75caa6
Child:
14:f55bf6e86868
Commit message:
to set the format of baudrate

Changed in this revision

portserial.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 59942e75caa6 -r 69ee21df79f1 portserial.cpp
--- 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;
 }