nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sensor_value_greater_then()

static bool sensor_value_greater_then ( struct sensor_value  sensor_val1,
struct sensor_value  sensor_val2 
)
inlinestatic

#include <include/caf/caf_sensor_common.h>

Helper function for checking if one sensor_value is greater than the other.

Parameters
sensor_val1First compered sensor value.
sensor_val2Second compered sensor value.
Returns
True if sensor_val1 is greater than sensor_val2, false otherwise.