Skip to content

Commit 8c0903e

Browse files
authored
Merge pull request #10 from NaBrHCl/main
Correct private method call for buzzer property in _Core, seeed_python_rpi/core.py
2 parents 5e78be2 + 54bffd8 commit 8c0903e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

seeed_python_rpi/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def usr_led(self, value):
9999
@property
100100
def buzzer(self):
101101
if hasattr(_Core, 'BUZZER_BRIGHTNESS'):
102-
return True if self.read_1st_line_from_file(_Core.BUZZER_BRIGHTNESS) != "0" else False
102+
return True if self.__read_1st_line_from_file(_Core.BUZZER_BRIGHTNESS) != "0" else False
103103
elif hasattr(_Core, 'BUZZER_GPIO_CHIP'):
104104
chip = gpiod.Chip(_Core.BUZZER_GPIO_CHIP)
105105
line = chip.find_lines(_Core.BUZZER_GPIO_LINE)

0 commit comments

Comments
 (0)