Merge pull request #26 from Moocow9m/patch-1

Fix DoConfig read
This commit is contained in:
Clownacy 2019-05-09 17:59:09 +00:00 committed by GitHub
commit e4b120959c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ void read_Config(){
for(char i=0;i<8;i++){ for(char i=0;i<8;i++){
const unsigned long button = CharsToLong(config.buttons[i]); const unsigned long button = CharsToLong(config.buttons[i]);
if(button<9 && button>0){ if(button<9 && button>0){
joyRows[i]->value(button -1); joyRows[i]->value(button);
} }
} }
} }