[all] Timers countdown / minute beep are configurable

[stock] Port from a part of Andreas patch relative to timers. Thanks Andreas! It allowed me to implement the configurable beeps for timers at a almost 0 flash cost.
This commit is contained in:
bsongis
2013-02-26 16:07:41 +00:00
parent fbd1488b62
commit 6fc8ba804c
9 changed files with 203 additions and 159 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ PACK(typedef struct {
}) TimerData_v212;
PACK(typedef struct {
uint16_t remanent:1;
uint16_t persistent:1;
uint16_t value:15;
}) TimerDataExtra_v212;
@@ -159,7 +159,7 @@ bool eeConvert()
for (uint8_t i=0; i<2; i++) {
g_model.timers[i].mode = oldModel.timers[i].mode;
g_model.timers[i].start = oldModel.timers[i].val;
g_model.timers[i].remanent = oldModel.timersXtra[i].remanent;
g_model.timers[i].persistent = oldModel.timersXtra[i].persistent;
g_model.timers[i].value = oldModel.timersXtra[i].value;
}
g_model.protocol = oldModel.protocol;