aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 4fd1b5c..86caf6a 100755
--- a/main.c
+++ b/main.c
@@ -88,7 +88,7 @@ int main() {
// Determine day of the week
//UART_send_string("Determining day of week");
- getWeekDay(dayofweek);
+ getWeekDay(dayOfWeek);
// Enter loop and update display if sec changes from DS3231
if (sec_chg != sec) {
@@ -112,7 +112,7 @@ int main() {
alarm2_status);
UART_send_string(buf);
sprintf(buf, "%sWKDAY:%s\t%d\t\t%sDAY:%s\t%s\r\n", YELLOW, CLRATTR,
- dayofweek, YELLOW, CLRATTR, weekday);
+ dayOfWeek, YELLOW, CLRATTR, weekday);
UART_send_string(buf);
sprintf(buf, "%sTEMP:\t%s%c%c%c.%c%cC%s", YELLOW, CLRATTR,
temp_sign, temp_2, temp_1, temp_0, 0xB0, CLRATTR);
@@ -188,10 +188,10 @@ void format_Temperature() {
temp_2 = temperature_msb / 10 + '0';
}
-// Determine day of week with dayofweek from DS3231
+// Determine day of week from DS3231
-void getWeekDay(unsigned int dayofweek) {
- switch (dayofweek) {
+void getWeekDay(unsigned int dayOfWeek) {
+ switch (dayOfWeek) {
case 1:
weekday = "Sun";
break;