Skip to content

Commit 23d09fb

Browse files
authored
Update pmu.py - Fixed spelling error for getKeyStatus method (#488)
getKeyStatus method was incorrectly spelled.
1 parent 8fcd84a commit 23d09fb

File tree

1 file changed

+1
-1
lines changed
  • projects/maixpy_m5stickv/builtin_py

1 file changed

+1
-1
lines changed

projects/maixpy_m5stickv/builtin_py/pmu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def setScreenBrightness(self, brightness):
167167
raise OutOfRange("Range for brightness is from 0 to 15")
168168
self.__writeReg(0x91, (int(brightness) & 0x0f) << 4)
169169

170-
def getKeyStuatus(self): # -1: NoPress, 1: ShortPress, 2:LongPress
170+
def getKeyStatus(self): # -1: NoPress, 1: ShortPress, 2:LongPress
171171
but_stu = self.__readReg(0x46)
172172
if (but_stu & (0x1 << 1)):
173173
return 1

0 commit comments

Comments
 (0)