aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmain.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/main.c b/main.c
index 5eece4b..5df1bb9 100755
--- a/main.c
+++ b/main.c
@@ -391,17 +391,15 @@ void edit_Date_Time(void) {
break;
- case 6: //Date
- display_Alpha(2, 16, 'D');
+ case 4: //Year
+ display_Alpha(2, 16, 'Y');
if (!DECR) {
- decrementValue(&date, 1, Get_Days_In_Month(year, month));
- display_Text(2, 2, Get_WeekDay(Get_DayOfWeek(year, month, date)));
- display_Digit(2, 9, date);
+ decrementValue(&year, 0, 99);
+ display_Digit(2, 14, year);
} else if (!INCR) {
- incrementValue(&date, 1, Get_Days_In_Month(year, month));
- display_Text(2, 2, Get_WeekDay(Get_DayOfWeek(year, month, date)));
- display_Digit(2, 9, date);
+ incrementValue(&year, 0, 99);
+ display_Digit(2, 14, year);
}
break;
@@ -419,15 +417,17 @@ void edit_Date_Time(void) {
break;
- case 4: //Year
- display_Alpha(2, 16, 'Y');
+ case 6: //Date
+ display_Alpha(2, 16, 'D');
if (!DECR) {
- decrementValue(&year, 0, 99);
- display_Digit(2, 14, year);
+ decrementValue(&date, 1, Get_Days_In_Month(year, month));
+ display_Text(2, 2, Get_WeekDay(Get_DayOfWeek(year, month, date)));
+ display_Digit(2, 9, date);
} else if (!INCR) {
- incrementValue(&year, 0, 99);
- display_Digit(2, 14, year);
+ incrementValue(&date, 1, Get_Days_In_Month(year, month));
+ display_Text(2, 2, Get_WeekDay(Get_DayOfWeek(year, month, date)));
+ display_Digit(2, 9, date);
}
break;