diff options
-rwxr-xr-x | main.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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;
|