From 409c81b9f70dad0621f031b42f6634fcda3424d3 Mon Sep 17 00:00:00 2001 From: hg Date: Wed, 5 Mar 2014 23:33:05 +0100 Subject: [PATCH] resources format adjusted --- Resources.cpp | 1 - Resources.h | 100 +++++++++++++++++++++++++------------------------- 2 files changed, 50 insertions(+), 51 deletions(-) diff --git a/Resources.cpp b/Resources.cpp index 0d4f620..0cf7def 100644 --- a/Resources.cpp +++ b/Resources.cpp @@ -14,7 +14,6 @@ String TEXT; const String& getResource(uint8_t key) { - // return TEXT_RESOURCES[key]; TEXT = String("T") + key + String(": "); return TEXT; } diff --git a/Resources.h b/Resources.h index 891800c..1d4dcf1 100644 --- a/Resources.h +++ b/Resources.h @@ -63,56 +63,56 @@ const uint8_t THERMCALIBRATE_HELP_KEY = 47; /* -const String TEXT_RESOURCES[] = { - "Text1", - "PeriodMeasure (ms): ", - "Alpha: ", - "Calibration: ", - "Info: ", - "Debug: ", - "COMPILE_TIME_DEBUG: ", - "TimeOuts: ", - "Cycles: ", - "Period (ms): ", - "Alpha: ", - "index: ", - "cal: ", - "t: ", - "ts: ", - ", ", - " enable : enable the calibration mode", - " disable : disable the calibration mode", - " show : show parameters for calibration process", - " r : set value of calibration resistor", - " start <0..3>: start calibration on channel", - " stop <10..3>: stop calibration on channel", - " enabled : ", - " r_cal : ", - "setTemperature: i=", - "t=", - "t_smoothed=", - "CONF: ", - "MODE: ", - "Initializing EEPROM", - "State 0", - "Switching to State 1", - "Switching to State 10", - "State 9", - "Timeout: ", - "State 10", - "No, no, we are in calibration mode, so directly switch to state 20", - "Switching to state 11", - "r_avg on channel ", - "calibration factor: ", - "Calibration stopped", - "Save calibration factor for channel ", - ": ", - "HELP List this help for all commands", - "command not found", - "Thermometer configuration operations", - "Show thermometer measurement values", - "Thermometer calibration operations", -}; +RESOURCES: + "Text1" + "PeriodMeasure (ms): " + "Alpha: " + "Calibration: " + "Info: " + "Debug: " + "COMPILE_TIME_DEBUG: " + "TimeOuts: " + "Cycles: " + "Period (ms): " + "Alpha: " + "index: " + "cal: " + "t: " + "ts: " + ", " + " enable : enable the calibration mode" + " disable : disable the calibration mode" + " show : show parameters for calibration process" + " r : set value of calibration resistor" + " start <0..3>: start calibration on channel" + " stop <10..3>: stop calibration on channel" + " enabled : " + " r_cal : " + "setTemperature: i=" + "t=" + "t_smoothed=" + "CONF: " + "MODE: " + "Initializing EEPROM" + "State 0" + "Switching to State 1" + "Switching to State 10" + "State 9" + "Timeout: " + "State 10" + "No, no, we are in calibration mode, so directly switch to state 20" + "Switching to state 11" + "r_avg on channel " + "calibration factor: " + "Calibration stopped" + "Save calibration factor for channel " + ": " + "HELP List this help for all commands" + "command not found" + "Thermometer configuration operations" + "Show thermometer measurement values" + "Thermometer calibration operations" +END RESOURCES */