mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-27 07:11:05 +01:00
Added basic support for positioners to control steerable satellite dishes
This commit is contained in:
6
tools.c
6
tools.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: tools.c 2.29 2012/12/07 09:00:00 kls Exp $
|
||||
* $Id: tools.c 3.1 2013/05/23 10:10:00 kls Exp $
|
||||
*/
|
||||
|
||||
#include "tools.h"
|
||||
@@ -691,12 +691,12 @@ void cTimeMs::Set(int Ms)
|
||||
begin = Now() + Ms;
|
||||
}
|
||||
|
||||
bool cTimeMs::TimedOut(void)
|
||||
bool cTimeMs::TimedOut(void) const
|
||||
{
|
||||
return Now() >= begin;
|
||||
}
|
||||
|
||||
uint64_t cTimeMs::Elapsed(void)
|
||||
uint64_t cTimeMs::Elapsed(void) const
|
||||
{
|
||||
return Now() - begin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user