]> sigrok.org Git - libsigrok.git/commitdiff
Add printers for wind speed, pressure and humidity at 293 kelvin.
authorBert Vermeulen <redacted>
Sat, 5 Jul 2014 19:47:21 +0000 (21:47 +0200)
committerBert Vermeulen <redacted>
Sat, 5 Jul 2014 19:56:33 +0000 (21:56 +0200)
output/analog.c

index bdb55733c492576d51e5ab72c7e1a5f4dfd2419d..fbc41d88ffa9e52e1f010fcd705aeca52b203f16 100644 (file)
@@ -178,6 +178,15 @@ static void fancyprint(int unit, int mqflags, float value, GString *out)
        case SR_UNIT_WATT_HOUR:
                si_printf(value, out, "Wh");
                break;
+       case SR_UNIT_METER_SECOND:
+               si_printf(value, out, "m/s");
+               break;
+       case SR_UNIT_HECTOPASCAL:
+               si_printf(value, out, "hPa");
+               break;
+       case SR_UNIT_HUMIDITY_293K:
+               si_printf(value, out, "%rF");
+               break;
        default:
                si_printf(value, out, "");
                break;