Skip to content

Commit c2ecbda

Browse files
authored
Merge pull request adafruit#1029 from adafruit/sipnpuff
fixing sip 'n puff typo and name
2 parents 9376a03 + d5f7a44 commit c2ecbda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CircuitPython_Sip_and_Puff/puff_detector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Y_OFFSET = 3
3535
TEXT_HEIGHT = 8
3636
BOTTOM_ROW = DISPLAY_HEIGHT - TEXT_HEIGHT
37-
BANNER_STRING = "PUFF-O-TRON-9000"
37+
BANNER_STRING = "ST LPS33HW Sip & Puff"
3838
pressure_string = " "
3939
input_type_string = " "
4040
# pylint:disable=too-many-locals,exec-used,eval-used
@@ -134,7 +134,7 @@ def run(self):
134134
while True:
135135
self.check_for_events()
136136

137-
def _catagorize_pressure(self, pressure):
137+
def _categorize_pressure(self, pressure):
138138
"""determine the strength and polarity of the pressure reading"""
139139
level = 0
140140
polarity = 0
@@ -170,7 +170,7 @@ def add_on_puff(self, new_callback):
170170
def _update_state(self):
171171
"""Updates the internal state to detect if a sip/puff has been started or stopped"""
172172

173-
self.current_polarity, level = self._catagorize_pressure(self.current_pressure)
173+
self.current_polarity, level = self._categorize_pressure(self.current_pressure)
174174

175175
if self.state == DETECTED:
176176
self.state = WAITING

0 commit comments

Comments
 (0)