Commit 2589f831 authored by Michael Ott's avatar Michael Ott
Browse files

Add unit DeciCelsius

parent b4d29ae6
......@@ -61,6 +61,9 @@ typedef enum {
/* 1e9 */
Unit_GigaHertz,
/* 1e-1 */
Unit_DeciCelsius,
/* 1e-2 */
Unit_CentiMeter,
Unit_CentiCelsius,
......
......@@ -103,14 +103,15 @@ ConversionTableEntry conversionTable[] = {
/* 18 */ { Unit_MilliVolt, "mV", Unit_Volt, -1000, 0 },
/* 19 */ { Unit_MicroVolt, "uV", Unit_Volt, -1000000, 0 },
/* 20 */ { Unit_Celsius, "C", Unit_MilliKelvin, 1000, 273150 },
/* 21 */ { Unit_CentiCelsius, "cC", Unit_Celsius, -100, 0},
/* 22 */ { Unit_MilliCelsius, "mC", Unit_Celsius, -1000, 0 },
/* 23 */ { Unit_MicroCelsius, "uC", Unit_Celsius, -1000000, 0},
/* 24 */ { Unit_Fahrenheit, "F", Unit_MilliKelvin, 555, 255116 },
/* 25 */ { Unit_Hertz, "Hz", Unit_Hertz, 1, 0},
/* 26 */ { Unit_KiloHertz, "kHz", Unit_Hertz, 1000, 0},
/* 27 */ { Unit_MegaHertz,"MHz", Unit_Hertz, 1000000, 0},
/* 28 */ { Unit_GigaHertz, "GHz", Unit_Hertz, 1000000000, 0},
/* 21 */ { Unit_DeciCelsius, "dC", Unit_Celsius, -10, 273150 },
/* 22 */ { Unit_CentiCelsius, "cC", Unit_Celsius, -100, 0},
/* 23 */ { Unit_MilliCelsius, "mC", Unit_Celsius, -1000, 0 },
/* 24 */ { Unit_MicroCelsius, "uC", Unit_Celsius, -1000000, 0},
/* 25 */ { Unit_Fahrenheit, "F", Unit_MilliKelvin, 555, 255116 },
/* 26 */ { Unit_Hertz, "Hz", Unit_Hertz, 1, 0},
/* 27 */ { Unit_KiloHertz, "kHz", Unit_Hertz, 1000, 0},
/* 28 */ { Unit_MegaHertz,"MHz", Unit_Hertz, 1000000, 0},
/* 29 */ { Unit_GigaHertz, "GHz", Unit_Hertz, 1000000000, 0},
};
#define ConversionTableSize ((int)(sizeof(conversionTable)/sizeof(ConversionTableEntry)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment