Skip to content

Commit 54de00a

Browse files
committed
Avoid ambigous overload situation.
See #20
1 parent 6e1bfd7 commit 54de00a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

EmbAJAX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ void EmbAJAXCheckButton::updateFromDriverArg(const char* argname) {
463463
char buf[16];
464464
_driver->getArg(argname, buf, 16);
465465
_checked = (buf[0] == 't');
466-
if (_checked && radiogroup) radiogroup->selectOption(this);
466+
if (_checked && radiogroup) radiogroup->selectButton(this);
467467
}
468468

469469
const char* EmbAJAXCheckButton::valueProperty(uint8_t which) const {
@@ -475,7 +475,7 @@ const char* EmbAJAXCheckButton::valueProperty(uint8_t which) const {
475475
void EmbAJAXCheckButton::setChecked(bool checked) {
476476
if (_checked == checked) return;
477477
_checked = checked;
478-
if (radiogroup && checked) radiogroup->selectOption(this);
478+
if (radiogroup && checked) radiogroup->selectButton(this);
479479
setChanged();
480480
}
481481

EmbAJAX.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class EmbAJAXRadioGroupBase {
472472
protected:
473473
EmbAJAXRadioGroupBase() {};
474474
friend class EmbAJAXCheckButton;
475-
virtual void selectOption(EmbAJAXCheckButton* which) = 0;
475+
virtual void selectButton(EmbAJAXCheckButton* which) = 0;
476476
const char* _name;
477477
};
478478

@@ -591,7 +591,7 @@ template<size_t NUM> class EmbAJAXRadioGroup : public EmbAJAXContainer<NUM>, pub
591591
EmbAJAXBase* buttonpointers[NUM];
592592
char childids[NUM][ARDUJAX_MAX_ID_LEN];
593593
int8_t _current_option;
594-
void selectOption(EmbAJAXCheckButton* which) override {
594+
void selectButton(EmbAJAXCheckButton* which) override {
595595
_current_option = -1;
596596
for (uint8_t i = 0; i < NUM; ++i) {
597597
if (which == buttonpointers[i]) {

0 commit comments

Comments
 (0)