Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved AutoDim code to ratt.c

  • Loading branch information...
commit b49def3ba730b54f113b495516e7f2182df50951 1 parent d3f7d29
@samckittrick authored
Showing with 4 additions and 8 deletions.
  1. +0 −8 firmware/anim.c
  2. +4 −0 firmware/ratt.c
View
8 firmware/anim.c
@@ -172,10 +172,6 @@ void initdisplay(uint8_t inverted) {
glcdFillRectangle(0,0,GLCD_XPIXELS, GLCD_YPIXELS, inverted);
glcdSetAddress(xpos, ypos);
glcdPutStr(msg, inverted);
-
- #ifdef AUTODIM
- autoDim(time_h, time_m);
- #endif
}
//advance the animation by one step. This function is called from ratt.c every ANIM_TICK miliseconds.
@@ -199,10 +195,6 @@ void step(void) {
{
baseInverted = 0;
}
-
- #ifdef AUTODIM
- autoDim(time_h, time_m);
- #endif
}
}
View
4 firmware/ratt.c
@@ -184,6 +184,10 @@ int main(void) {
while (1) {
animticker = ANIMTICK_MS;
+ #ifdef AUTODIM
+ autoDim(time_h, time_m);
+ #endif
+
//check daylight savings time
#ifdef AUTODST
//if(minute_changed)
Please sign in to comment.
Something went wrong with that request. Please try again.