diff --git a/src/IntlkGun.cpp b/src/IntlkGun.cpp index e42c3bfcdd96e6a5e0552c83b149064be493a35b..bb81ceb217a2c3575514aea1c90e7c02f42121a1 100644 --- a/src/IntlkGun.cpp +++ b/src/IntlkGun.cpp @@ -464,6 +464,8 @@ void IntlkGun::read_RealFilTimer(Tango::Attribute &attr) timer = 0xffff-timer; #else unsigned short timer = (unsigned short)rawmsg_10[0]; + if(timer == (unsigned short)(-1)) + timer = 0; #endif real_fil_timer = (float)timer; real_fil_timer /= 60;// div 600 mul 10