Merge pull request #34 from algernon/h/key-position-bit-fix

Fix the SCANBIT macro by forcing it to use 32 bits
pull/35/head
Jesse Vincent 8 years ago committed by GitHub
commit 58206d9b2b

@ -48,7 +48,7 @@ class Model01 {
}; };
#define SCANBIT(row,col) (1 << (row * 8 + (7 - col))) #define SCANBIT(row,col) ((uint32_t)1 << (row * 8 + (7 - col)))
#define R0C0 SCANBIT(0, 0) #define R0C0 SCANBIT(0, 0)
#define R0C1 SCANBIT(0, 1) #define R0C1 SCANBIT(0, 1)

Loading…
Cancel
Save