Advertisement
svenhoefer

Untitled

Sep 27th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.54 KB | None | 0 0
  1. diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp
  2. index 2cfafbc..1ef0934 100644
  3. --- a/src/driver/rcinput.cpp
  4. +++ b/src/driver/rcinput.cpp
  5. @@ -539,8 +539,9 @@ int CRCInput::checkTimers()
  6.         return _id;
  7.  }
  8.  
  9. -int64_t CRCInput::calcTimeoutEnd(const int timeout_in_seconds)
  10. +int64_t CRCInput::calcTimeoutEnd(const int _timeout_in_seconds)
  11.  {
  12. +       int timeout_in_seconds = (_timeout_in_seconds == 0) ? 0xFFFF : _timeout_in_seconds;
  13.         return time_monotonic_us() + ((uint64_t)timeout_in_seconds * (uint64_t) 1000000);
  14.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement