Skip to content

Commit dc1efd2

Browse files
committed
deep_sleep(): changed name of argument from ms to duration_ms
1 parent f2a900d commit dc1efd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_espatcontrol/adafruit_espatcontrol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,15 +658,15 @@ def hard_reset(self) -> None:
658658
self._uart.reset_input_buffer()
659659
self._initialized = False
660660

661-
def deep_sleep(self, ms: int) -> bool:
661+
def deep_sleep(self, duration_ms: int) -> bool:
662662
"""Execute deep-sleep command.
663663
Passing zero as argument will put the chip into deep-sleep forever
664664
until the RST-pin is pulled low (method hard_reset()).
665665
This is the typical use-case for an ESP8266 as coprocessor.
666666
667667
Note that a similar method in the Arduino-libs expects microseconds.
668668
"""
669-
cmd = "AT+GSLP=" + str(ms)
669+
cmd = "AT+GSLP=" + str(duration_ms)
670670
try:
671671
self.at_response(cmd, retries=1)
672672
return True

0 commit comments

Comments
 (0)