mirror of https://github.com/sfeakes/AqualinkD.git
fix ballle98/AqualinkD#81: Add support for boost and freeze protect to equiptment_update_cycle
compiler warningpull/249/head
parent
79cf3e8c94
commit
a62b7fe03e
2
pda.c
2
pda.c
|
@ -171,7 +171,7 @@ void equiptment_update_cycle(int eqID) {
|
|||
} else if ((eqID >= 0) && (eqID < 32)) {
|
||||
update_equiptment_bitmask |= (1 << (eqID));
|
||||
char *eqName = NULL;
|
||||
if (eqID < _aqualink_data->total_buttons) {
|
||||
if (eqID < TOTAL_BUTTONS) {
|
||||
eqName = _aqualink_data->aqbuttons[eqID].name;
|
||||
} else if (eqID == FREEZE_PROTECT_INDEX) {
|
||||
eqName = "FREEZE PROTECT";
|
||||
|
|
Loading…
Reference in New Issue