mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-02-02 00:57:59 +00:00
2.0.2015122901
Corrections to bug fixes involving OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO (Thanks, UA9OLB)
This commit is contained in:
parent
c5da857868
commit
e84aa5b0e3
@ -436,9 +436,11 @@
|
||||
2.0.2015122802
|
||||
Bug fixes involving buttons and OPTION_EL_MANUAL_ROTATE_LIMITS (Thanks, UA9OLB)
|
||||
|
||||
2.0.2015122901
|
||||
Corrections to bug fixes involving OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO (Thanks, UA9OLB)
|
||||
*/
|
||||
|
||||
#define CODE_VERSION "2.0.2015122802"
|
||||
#define CODE_VERSION "2.0.2015122901"
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
#include <EEPROM.h>
|
||||
@ -3637,9 +3639,12 @@ void update_display(){
|
||||
#ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO
|
||||
if (clock_hours < 10) {
|
||||
strcpy(workstring, "0");
|
||||
}
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcat(workstring,workstring2);
|
||||
} else {
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
}
|
||||
#else
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
@ -3677,9 +3682,12 @@ void update_display(){
|
||||
#ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO
|
||||
if (clock_hours < 10) {
|
||||
strcpy(workstring, "0");
|
||||
}
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcat(workstring,workstring2);
|
||||
} else {
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
}
|
||||
#else
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
@ -3815,9 +3823,12 @@ void update_display(){
|
||||
#ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO
|
||||
if (clock_hours < 10) {
|
||||
strcpy(workstring, "0");
|
||||
}
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcat(workstring,workstring2);
|
||||
} else {
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
}
|
||||
#else
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
@ -3853,9 +3864,12 @@ void update_display(){
|
||||
#ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO
|
||||
if (clock_hours < 10) {
|
||||
strcpy(workstring, "0");
|
||||
}
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcat(workstring,workstring2);
|
||||
} else {
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
}
|
||||
#else
|
||||
dtostrf(clock_hours, 0, 0, workstring2);
|
||||
strcpy(workstring,workstring2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user