Skip to content

Commit

Permalink
AP_TemperatureSensor: rename macros to avoid conflicts
Browse files Browse the repository at this point in the history
these macros were also defined in NuttX in clock.h
  • Loading branch information
tridge committed May 6, 2017
1 parent 607220d commit db64da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_TemperatureSensor/TSYS01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool TSYS01::init()

/* Request 20Hz update */
// Max conversion time is 9.04 ms
_dev->register_periodic_callback(50 * USEC_PER_MSEC,
_dev->register_periodic_callback(50 * AP_USEC_PER_MSEC,
FUNCTOR_BIND_MEMBER(&TSYS01::_timer, void));
return true;
}
Expand Down

0 comments on commit db64da7

Please sign in to comment.