diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-09-30 22:12:11 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-09-30 22:12:11 -0500 |
commit | 56ba1d421a50f14719a0b388589ae864fd443fe0 (patch) | |
tree | f11413e83e157b900cf6cef49ca780af4cdb1053 | |
parent | 52e67e191db44f2dfa39eab09a042d24f9a8f3a3 (diff) |
-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;
|