Skip to content

Commit 760c94f

Browse files
Rename pin.disabled to pin.makedisabled for consistency
1 parent 44d5388 commit 760c94f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Shell.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,8 +1496,8 @@ static numvar pinMakeDisconnected(void) {
14961496
return pinSetModeInternal(1, PinoccioScout::PINMODE_DISCONNECTED);
14971497
}
14981498

1499-
static numvar pinDisable(void) {
1500-
if (!checkArgs(1, F("usage: pin.disable(\"pinName\")"))) {
1499+
static numvar pinMakeDisabled(void) {
1500+
if (!checkArgs(1, F("usage: pin.makedisabled(\"pinName\")"))) {
15011501
return 0;
15021502
}
15031503

@@ -2485,7 +2485,7 @@ void PinoccioShell::setup() {
24852485
addFunction("pin.makeoutput", pinMakeOutput);
24862486
addFunction("pin.makepwm", pinMakePWM);
24872487
addFunction("pin.makedisconnected", pinMakeDisconnected);
2488-
addFunction("pin.disable", pinDisable);
2488+
addFunction("pin.makedisabled", pinMakeDisabled);
24892489
addFunction("pin.setmode", pinSetMode);
24902490
addFunction("pin.read", pinRead);
24912491
addFunction("pin.write", pinWrite);

0 commit comments

Comments
 (0)