RS232 control for TVOne products

Dependents:   SPK-DVIMXR

Revision:
20:ebddf3ddb1f6
Parent:
19:350d1191e466
Child:
21:2260dde18dfa
--- a/spk_tvone_mbed.cpp	Tue Dec 11 13:14:17 2012 +0000
+++ b/spk_tvone_mbed.cpp	Tue Dec 11 17:54:33 2012 +0000
@@ -173,7 +173,7 @@
         }
     }
   }
-  
+
   // Return true if we got the no error acknowledgement from the unit. The rest of the ack will be verified elsewhere if needed.
   if (ackPos == ackLength && ackBuffer[1] == '4') 
   {
@@ -228,7 +228,12 @@
     commandMinimumPeriod = kTV1CommandMinimumMillis;
 }
 
-int  SPKTVOne::millisSinceLastCommandSent()
+int SPKTVOne::getCommandTimeoutPeriod()
+{
+    return commandTimeoutPeriod;
+}
+
+int SPKTVOne::millisSinceLastCommandSent()
 {
     return timer.read_ms();
 }