Rename states to dawn, day, dusk and night

master
Kenny Levinsen 2020-10-04 15:26:42 +02:00
parent caba0d8dcc
commit ddbb8f9912
1 changed files with 5 additions and 5 deletions

10
main.c
View File

@ -60,10 +60,10 @@ enum state {
}; };
static char *state_names[] = { static char *state_names[] = {
"high temperature", "day",
"animating to low temperature", "dusk",
"low temperature", "night",
"animating to high temperature", "dawn",
NULL NULL
}; };
@ -338,7 +338,7 @@ start:
} }
if (ctx->state != old_state) { if (ctx->state != old_state) {
fprintf(stderr, "changed state: %s\n", state_names[ctx->state]); fprintf(stderr, "changed state to %s\n", state_names[ctx->state]);
} }
if (temp != ctx->cur_temp || ctx->new_output) { if (temp != ctx->cur_temp || ctx->new_output) {