Skip to content

Commit

Permalink
keypad fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 18, 2019
1 parent 840aa94 commit cc016d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eez/apps/psu/gui/keypad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ namespace eez {
namespace psu {
namespace gui {

static NumericKeypad g_keypadsPool[1];
static Keypad g_keypadsPool[1];

NumericKeypad* getFreeKeypad() {
for (unsigned int i = 0; i < sizeof (g_keypadsPool) / sizeof(NumericKeypad); ++i) {
Keypad* getFreeKeypad() {
for (unsigned int i = 0; i < sizeof (g_keypadsPool) / sizeof(Keypad); ++i) {
if (g_keypadsPool[i].m_isFree) {
return &g_keypadsPool[i];
}
Expand Down

0 comments on commit cc016d5

Please sign in to comment.