Add printers for wind speed, pressure and humidity at 293 kelvin.

This commit is contained in:
Bert Vermeulen 2014-07-05 21:47:21 +02:00
parent 3180136210
commit 543d041dc1
1 changed files with 9 additions and 0 deletions

View 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;