aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-09-30 22:12:11 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-09-30 22:12:11 -0500
commit56ba1d421a50f14719a0b388589ae864fd443fe0 (patch)
treef11413e83e157b900cf6cef49ca780af4cdb1053 /main.c
parent52e67e191db44f2dfa39eab09a042d24f9a8f3a3 (diff)
Order the case statements numerically.HEADmaster
Diffstat (limited to 'main.c')
-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;