Rename states to dawn, day, dusk and night
parent
caba0d8dcc
commit
ddbb8f9912
10
main.c
10
main.c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue