Commit 49c01c20 authored by Gabi Melman's avatar Gabi Melman

Merge pull request #5 from bitwigglers/master

use std::abs from cstdlib which fixes a warning that occurs when compiling with clang 3.5 on 64-bit linux
parents 9e3656a1 3d291f48
......@@ -305,7 +305,7 @@ public:
std::lock_guard<std::mutex> l(_mutex);
using namespace std::chrono;
auto diff = msg.time - _last_update;
auto secs_diff = abs((duration_cast<seconds>(diff)).count());
auto secs_diff = std::abs((duration_cast<seconds>(diff)).count());
if (secs_diff >= 2)
{
_value = get_value(msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment