Set size variable for main menu button array

This commit is contained in:
Reed Nightingale 2020-02-09 16:17:18 -08:00
parent e42b21fdf3
commit 66a9d82308

View File

@ -3,6 +3,7 @@
#include <avr/pgmspace.h>
#include "button.h"
#include "menu_utils.h"
#include "morse.h"
#include "settings.h"
#include "ubitx.h"//THRESHOLD_USB_LSB
@ -24,6 +25,7 @@ bool mainMenuSelecting = false;//Tracks if we're selecting buttons with knob, or
uint8_t mainMenuSelectedItemRaw = 0;
const Button mainMenuButtons [] PROGMEM = {};
static constexpr uint8_t MAIN_MENU_NUM_BUTTONS = sizeof(mainMenuButtons) / sizeof(mainMenuButtons[0]);
void drawMainMenu(void)
{