Commit 0cc896ec authored by root's avatar root
Browse files

Added conversion for mC

parent e5825f00
......@@ -41,8 +41,9 @@ typedef enum {
/* Others */
DCDBUnit_Celsius,
DCDBUnit_Fahrenheit
DCDBUnit_Fahrenheit,
DCDBUnit_MilliCelsius,
} DCDBUnit;
class UnitConv
......
......@@ -73,6 +73,7 @@ ConversionTableEntry conversionTable[] = {
/* 18 */ { DCDBUnit_MicroVolt, "uV", DCDBUnit_Volt, -1000000, 0 },
/* 19 */ { DCDBUnit_Celsius, "C", DCDBUnit_MilliKelvin, 1000, 273150 },
/* 20 */ { DCDBUnit_Fahrenheit, "F", DCDBUnit_MilliKelvin, 555, 255116 },
/* 21 */ { DCDBUnit_MilliCelsius, "mC", DCDBUnit_Celsius, -1000, 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