Revision 166:1a6a85e8d2e7 tidsense/debug.h

b/tidsense/debug.h
48 48
 * @param status the status code to report
49 49
 */
50 50
#   define debug_sensor_status(name, status) \
51
        debugf("  % 10S:  %S (%d)\n", PSTR(name), status == 0 ? debug_str_ok : \
51
        debugf("  % 10S:  %S (%d)\n", PSTR(name), (status) == 0 ? debug_str_ok : \
52 52
            debug_str_fail, status)
53 53

  
54 54
#   if(JSON_OUTPUT)

Also available in: Unified diff