RS232 control for TVOne products
Revision 20:ebddf3ddb1f6, committed 2012-12-11
- Comitter:
- tobyspark
- Date:
- Tue Dec 11 17:54:33 2012 +0000
- Parent:
- 19:350d1191e466
- Child:
- 21:2260dde18dfa
- Commit message:
- getCommandTimeoutPeriod
Changed in this revision
spk_tvone_mbed.cpp | Show annotated file Show diff for this revision Revisions of this file |
spk_tvone_mbed.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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(); }
--- a/spk_tvone_mbed.h Tue Dec 11 13:14:17 2012 +0000 +++ b/spk_tvone_mbed.h Tue Dec 11 17:54:33 2012 +0000 @@ -48,6 +48,7 @@ bool uploadCustomResolutions(); void setCommandTimeoutPeriod(int millis); + int getCommandTimeoutPeriod(); void setCommandMinimumPeriod(int millis); void increaseCommandPeriods(int millis); void resetCommandPeriods();