Fix bitmask used to extract CPU identifier for CPUMeter

When manipulating CPUMeters in the AvailableMeterPanel we
use the bottom 16 bits to hold the CPU number.  However,
the bitmask used to extract the CPU number only masks the
lower 8 bits (0xff).
This commit is contained in:
Nathan Scott 2021-06-23 17:18:20 +10:00
parent 44d1200ca4
commit a0f758009b

View File

@ -45,7 +45,7 @@ static HandlerResult AvailableMetersPanel_eventHandler(Panel* super, int ch) {
if (!selected)
return IGNORED;
unsigned int param = selected->key & 0xff;
unsigned int param = selected->key & 0xffff;
int type = selected->key >> 16;
HandlerResult result = IGNORED;
bool update = false;