From 6755a4a7e58fbdd846ecfeeaf1e0b05893041703 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Fri, 19 Feb 2021 15:08:29 +0100 Subject: [PATCH] Fix CPS channel reading on GD-77 --- platform/drivers/NVM/nvmem_GDx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/NVM/nvmem_GDx.c b/platform/drivers/NVM/nvmem_GDx.c index 238e3827..617f09ca 100644 --- a/platform/drivers/NVM/nvmem_GDx.c +++ b/platform/drivers/NVM/nvmem_GDx.c @@ -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 ###