]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pattern.c: num_pattern(10) is also allowed
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 27 Feb 2013 23:57:35 +0000 (00:57 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 28 Feb 2013 00:07:56 +0000 (01:07 +0100)
firmware/pattern.c

index 03a7517b43f0c4e01e38b6c151834629a5a48fee..43a1150e1255635768c36a3aaa00550308fc4923 100644 (file)
@@ -113,8 +113,8 @@ void init_pattern()
 
 pattern_t *number_pattern(unsigned char num, unsigned char inv)
 {
-       if (num >= 9)
-               num = 9;
+       if (num >= 10)
+               num = 10;
 
        if (inv) {
                return pattern_invnum