Browse Source

Off-by-One bug.

Thomas Buck 12 years ago
parent
commit
ca69131f9a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      CubeFirmware/main.c
  2. 1
    1
      CubeFirmware/main.hex

+ 1
- 1
CubeFirmware/main.c View File

@@ -202,7 +202,7 @@ int main(void) {
202 202
 						// Show idle frames
203 203
 						if (isFinished() >= IDLELENGTH) {
204 204
 							setImage(idleAnimation[idleCounter]);
205
-							if (idleCounter < (IDLEANIMATIONCOUNT - 1)) {
205
+							if (idleCounter < IDLEANIMATIONCOUNT) {
206 206
 								idleCounter++;
207 207
 							} else {
208 208
 								idleCounter = 0;

+ 1
- 1
CubeFirmware/main.hex View File

@@ -105,7 +105,7 @@
105 105
 :1006800038F40F2D0F5F8F2D0E94500AF02E1DC0E1
106 106
 :10069000809178018D7F16C00E94AF058033A8F04D
107 107
 :1006A000EF2DF0E0EE0FFF1FEF59FE4F808191819B
108
-:1006B0000E945A053F2D323010F4F39406C0809109
108
+:1006B0000E945A053F2D333010F4F39406C0809108
109 109
 :1006C0007801826080937801FF240E948904882346
110 110
 :1006D00021F00E9497040E9460020E948B08F22F72
111 111
 :1006E000FC19A1E02F1708F0A0E0232F2B19E1E05F

Loading…
Cancel
Save