Skip to content

Commit

Permalink
[BUG FIX] Fixed main.py Error (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikefly123 authored Feb 1, 2025
1 parent 1086d2a commit a9d046c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ def initial_boot():
c.watchdog_pet()
f.listen()
c.watchdog_pet()
# f.state_of_health()
# f.listen()
# c.watchdog_pet()

try:
c.boot_count.increment()
Expand All @@ -70,10 +67,10 @@ def initial_boot():
finally:
pass

def send_imu():
def send_imu_data():
logger.info("Looking to get imu data...")
IMUData = []
c.watchdog_pet("IMU has baton")
c.watchdog_pet()
logger.info("IMU has baton")
IMUData = f.get_imu_data()
c.watchdog_pet()
Expand All @@ -94,7 +91,7 @@ def main():

f.listen_loiter()

send_imu()
send_imu_data()

f.listen_loiter()

Expand Down

0 comments on commit a9d046c

Please sign in to comment.