Allows RS485 communication using MAX485 chip

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
NeoBelerophon
Date:
Sat Nov 14 11:55:10 2015 +0000
Parent:
0:10a8f9128f73
Commit message:
little fixes

Changed in this revision

RS485.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RS485.cpp	Fri Nov 13 11:08:15 2015 +0000
+++ b/RS485.cpp	Sat Nov 14 11:55:10 2015 +0000
@@ -2,6 +2,7 @@
 
 RS485::RS485(PinName tx, PinName rx, PinName mode, const char *name) : Serial( tx, rx, name), m_modePin(mode)
 {   
+    m_modePin = 0;
 }
 
 int RS485::_getc() {