Browse Source

replaced uint8_t with unsigned char for consistency

feature/2015
Christian Kroll 13 years ago
parent
commit
c4124c8389
  1. 3
      animations/fpmath_patterns.c

3
animations/fpmath_patterns.c

@ -1,6 +1,5 @@
#include <math.h> // Floating point math is dog slow on AVR, but I don't care. #include <math.h> // Floating point math is dog slow on AVR, but I don't care.
#include <string.h> #include <string.h>
#include <stdint.h>
#include "../config.h" #include "../config.h"
#include "../pixel.h" #include "../pixel.h"
#include "../util.h" #include "../util.h"
@ -68,7 +67,7 @@ static void fpmath_pattern(double const t_start,
unsigned char const mask = shl_table[x % 8U]; unsigned char const mask = shl_table[x % 8U];
unsigned char const x8 = x / 8u; unsigned char const x8 = x / 8u;
unsigned char const color = fpPattern(x, y, t); unsigned char const color = fpPattern(x, y, t);
for (uint8_t p = 0; p < NUMPLANE; ++p) for (unsigned char p = 0; p < NUMPLANE; ++p)
{ {
if (p <= (color - 1)) if (p <= (color - 1))
{ {

Loading…
Cancel
Save