1 2 3 4 5 6 7 8 9 10 11
extern int gps_happy; static inline int gps_is_happy (void) { return gps_happy > 15; } static inline int gps_is_stable (void) { return gps_happy > 60; }