diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-08-07 22:52:25 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-08-07 22:52:25 -0500 |
commit | 46329a7559e0c6ab10d1ca56aa1798fb05ad000e (patch) | |
tree | 14cb5a2bdead09f02e813286cb506053811d2af3 | |
parent | 260ec8ab0c1cff668a8bd209c28e5996a17993ff (diff) |
Adjust declarations for global variables used throughout program to be extern
-rwxr-xr-x | main.h | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -29,22 +29,22 @@ unsigned int update; unsigned int edit_datetime;
// Declare variables for date time and alarms
-unsigned int sec;
-unsigned int min;
-unsigned int hour;
-unsigned int day;
-unsigned int date;
-unsigned int month;
-unsigned int year;
-unsigned int century;
-unsigned int alarm1_sec, alarm1_min, alarm1_hour;
-unsigned int alarm2_min, alarm2_hour;
-unsigned int status_reg, alarm1_status, alarm2_status;
-unsigned int control_reg;
+extern unsigned int sec;
+extern unsigned int min;
+extern unsigned int hour;
+extern unsigned int day;
+extern unsigned int date;
+extern unsigned int month;
+extern unsigned int year;
+extern unsigned int century;
+extern unsigned int alarm1_sec, alarm1_min, alarm1_hour;
+extern unsigned int alarm2_min, alarm2_hour;
+extern unsigned int status_reg, alarm1_status, alarm2_status;
+extern unsigned int control_reg;
// Declare variables for temperature
-unsigned int temperature_lsb;
-int temperature_msb;
+extern unsigned int temperature_lsb;
+extern int temperature_msb;
unsigned char temp_sign;
// Declare variables for splitting decimal digit to character
|