Skip to content

Commit

Permalink
stc15_dusk cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsokol805 committed Dec 18, 2016
1 parent cc43f3b commit a69f4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/stc15_dusk.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "stc15_dusk.h"

#define STC15_LIGHT_THRESHOLD 219

unsigned char dusk_value = 0;

void nop_wait() {
Expand All @@ -25,6 +27,6 @@ void stc15_update_light_state() {
}

unsigned char stc15_is_low_light() {
return dusk_value > 219;
return dusk_value > STC15_LIGHT_THRESHOLD;
}

1 change: 0 additions & 1 deletion src/stc15_dusk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

void stc15_dusk_init();

/* should be called periodically */
void stc15_update_light_state();

unsigned char stc15_is_low_light();
Expand Down

0 comments on commit a69f4a4

Please # to comment.