Browse Source

fixed bit mask in set_control()

xotmatrix 3 years ago
parent
commit
2b552fbe64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AY3910RegWrite/AY3910RegWrite.ino

+ 1 - 1
AY3910RegWrite/AY3910RegWrite.ino

@@ -101,7 +101,7 @@ void setup_control()
 
 void set_control(int mode)
 {
-  PORTC = (PORTC & 111111100) | (mode);
+  PORTC = (PORTC & B11111100) | (mode);
 }
 
 void SetData(unsigned char data)