Merge pull request #1029 from adafruit/sipnpuff
fixing sip 'n puff typo and name
This commit is contained in:
commit
c2ecbdabb6
1 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ DISPLAY_HEIGHT = 64
|
|||
Y_OFFSET = 3
|
||||
TEXT_HEIGHT = 8
|
||||
BOTTOM_ROW = DISPLAY_HEIGHT - TEXT_HEIGHT
|
||||
BANNER_STRING = "PUFF-O-TRON-9000"
|
||||
BANNER_STRING = "ST LPS33HW Sip & Puff"
|
||||
pressure_string = " "
|
||||
input_type_string = " "
|
||||
# pylint:disable=too-many-locals,exec-used,eval-used
|
||||
|
|
@ -134,7 +134,7 @@ class PuffDetector:
|
|||
while True:
|
||||
self.check_for_events()
|
||||
|
||||
def _catagorize_pressure(self, pressure):
|
||||
def _categorize_pressure(self, pressure):
|
||||
"""determine the strength and polarity of the pressure reading"""
|
||||
level = 0
|
||||
polarity = 0
|
||||
|
|
@ -170,7 +170,7 @@ class PuffDetector:
|
|||
def _update_state(self):
|
||||
"""Updates the internal state to detect if a sip/puff has been started or stopped"""
|
||||
|
||||
self.current_polarity, level = self._catagorize_pressure(self.current_pressure)
|
||||
self.current_polarity, level = self._categorize_pressure(self.current_pressure)
|
||||
|
||||
if self.state == DETECTED:
|
||||
self.state = WAITING
|
||||
|
|
|
|||
Loading…
Reference in a new issue