Fix CPS channel reading on GD-77

This commit is contained in:
Federico Amedeo Izzo 2021-02-19 15:08:29 +01:00
parent d69c237255
commit 6755a4a7e5
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ int nvm_readChannelData(channel_t *channel, uint16_t pos)
uint8_t bitmap_bit = bank_channel % 8;
gdxChannel_t chData;
// The channel is marked not valid in the bitmap
if(!(bitmap[bitmap_byte] & (1 >> bitmap_bit)))
if(!(bitmap[bitmap_byte] & (1 << bitmap_bit)))
return -1;
// The channel is marked valid in the bitmap
// ### Read desired channel from the correct bank ###