diff --git a/k3ng_rotator_controller.ino b/k3ng_rotator_controller.ino index 759a9cc..7a88558 100644 --- a/k3ng_rotator_controller.ino +++ b/k3ng_rotator_controller.ino @@ -429,10 +429,13 @@ 2.0.2015122001 Created OPTION_REVERSE_AZ_HH12_AS5045 and OPTION_REVERSE_EL_HH12_AS5045 + + 2.0.2015122801 + Bug fixes involving OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO (Thanks, UA9OLB) */ -#define CODE_VERSION "2.0.2015122001" +#define CODE_VERSION "2.0.2015122801" #include #include @@ -3602,10 +3605,10 @@ void update_display(){ update_time(); #ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO if (clock_hours < 10) { - strcat(workstring, "0"); + strcpy(workstring, "0"); } dtostrf(clock_hours, 0, 0, workstring2); - strcat(workstring,workstring2); + strcpy(workstring,workstring2); #else dtostrf(clock_hours, 0, 0, workstring2); strcpy(workstring,workstring2); @@ -3642,10 +3645,10 @@ void update_display(){ update_time(); #ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO if (clock_hours < 10) { - strcat(workstring, "0"); + strcpy(workstring, "0"); } dtostrf(clock_hours, 0, 0, workstring2); - strcat(workstring,workstring2); + strcpy(workstring,workstring2); #else dtostrf(clock_hours, 0, 0, workstring2); strcpy(workstring,workstring2); @@ -3783,7 +3786,7 @@ void update_display(){ strcpy(workstring, "0"); } dtostrf(clock_hours, 0, 0, workstring2); - strcat(workstring,workstring2); + strcpy(workstring,workstring2); #else dtostrf(clock_hours, 0, 0, workstring2); strcpy(workstring,workstring2); @@ -3818,10 +3821,10 @@ void update_display(){ update_time(); #ifdef OPTION_CLOCK_ALWAYS_HAVE_HOUR_LEADING_ZERO if (clock_hours < 10) { - strcat(workstring, "0"); + strcpy(workstring, "0"); } dtostrf(clock_hours, 0, 0, workstring2); - strcat(workstring,workstring2); + strcpy(workstring,workstring2); #else dtostrf(clock_hours, 0, 0, workstring2); strcpy(workstring,workstring2); @@ -10695,6 +10698,8 @@ Not implemented yet: } // switch + + return(0); } // process_backslash_command //----------------------------------------------------------------------- diff --git a/rotator_features.h b/rotator_features.h index 572a5f7..0b7e64d 100755 --- a/rotator_features.h +++ b/rotator_features.h @@ -62,7 +62,7 @@ // #define FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER // All displays require k3ngdisplay.h and k3ngdisplay.cpp in the ino directory! -//#define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common) +#define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common) //#define FEATURE_ADAFRUIT_I2C_LCD //#define FEATURE_ADAFRUIT_BUTTONS // Uncomment this to use Adafruit I2C LCD buttons for manual AZ/EL instead of normal buttons //#define FEATURE_YOURDUINO_I2C_LCD diff --git a/rotator_features_test.h b/rotator_features_test.h index 3bd00e2..54e252a 100755 --- a/rotator_features_test.h +++ b/rotator_features_test.h @@ -61,7 +61,7 @@ //#define FEATURE_EL_POSITION_A2_ABSOLUTE_ENCODER // All displays require k3ngdisplay.h and k3ngdisplay.cpp in the ino directory! -// #define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common) +#define FEATURE_4_BIT_LCD_DISPLAY // Uncomment for classic 4 bit LCD display (most common) //#define FEATURE_ADAFRUIT_I2C_LCD //#define FEATURE_ADAFRUIT_BUTTONS // Uncomment this to use Adafruit I2C LCD buttons for manual AZ/EL instead of normal buttons //#define FEATURE_YOURDUINO_I2C_LCD