Skip to content

Commit

Permalink
made more privates public
Browse files Browse the repository at this point in the history
  • Loading branch information
Bad-Assumptions committed Jul 17, 2023
1 parent f1cde51 commit 1635282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/LiquidMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ class LiquidLine {
bool set_asProgmem(uint8_t number);
///@}

// public for debugging convenience
const void *_variable[MAX_VARIABLES]; ///< Pointers to the variables
DataType _variableType[MAX_VARIABLES]; ///< Data type of the variables

private:
/// Prints the line to the display.
/**
Expand Down Expand Up @@ -579,8 +583,6 @@ class LiquidLine {
uint8_t _floatDecimalPlaces;
uint8_t _variableCount; ///< Count of the variables
void (*_function[MAX_FUNCTIONS])(void); ///< Pointers to the functions
const void *_variable[MAX_VARIABLES]; ///< Pointers to the variables
DataType _variableType[MAX_VARIABLES]; ///< Data type of the variables
bool _focusable; ///< Determines whether the line is focusable
};

Expand Down
4 changes: 2 additions & 2 deletions src/LiquidMenu_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ const uint8_t MAX_VARIABLES = 5; ///< @note Default: 5
const uint8_t MAX_FUNCTIONS = 4; ///< @note Default: 8

/// Configures the number of available lines per screen.
const uint8_t MAX_LINES = 2; ///< @note Default: 12
const uint8_t MAX_LINES = 3; ///< @note Default: 12

/// Configures the number of available screens per menu.
const uint8_t MAX_SCREENS = 10; ///< @note Default: 14

/// Configures the number of available menus per menus system.
const uint8_t MAX_MENUS = 12; ///< @note Default: 8
const uint8_t MAX_MENUS = 15; ///< @note Default: 8

/*!
* Enable/disable hiding the focus indicator.
Expand Down

0 comments on commit 1635282

Please sign in to comment.