From a62b7fe03eec35bdb4c66321b67753223d7fd179 Mon Sep 17 00:00:00 2001 From: Lee Ballard Date: Thu, 31 Aug 2023 10:41:01 -0500 Subject: [PATCH] fix ballle98/AqualinkD#81: Add support for boost and freeze protect to equiptment_update_cycle compiler warning --- pda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pda.c b/pda.c index b2981394..705a186f 100644 --- a/pda.c +++ b/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";