Skip to content

Commit

Permalink
Change flash notification
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Dec 11, 2024
1 parent e740d77 commit 2ad1022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rosys/hardware/lizard_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def flash_core(self) -> None:
rosys.notify(f'Flashing Lizard firmware {self.local_version} to Core...')
strapping_pins_ok = await self.robot_brain.esp_pins_p0.check_strapping_pins()
if not strapping_pins_ok:
rosys.notify('Failed. Check strapping pins.', 'negative')
rosys.notify('Flashing Core failed. Check strapping pins.', 'negative')
return
self.robot_brain.communication.disconnect()
await rosys.sleep(0.3)
Expand All @@ -128,11 +128,11 @@ async def flash_core(self) -> None:
rosys.notify('Finished.', 'positive')

async def flash_p0(self, timeout: float = 120) -> None:
rosys.notify(f'Flashing Lizard firmware {self.core_version} to P0...')
strapping_pins_ok = await self.robot_brain.esp_pins_p0.check_strapping_pins()
if not strapping_pins_ok:
rosys.notify('Failed. Check strapping pins.', 'negative')
rosys.notify('Flashing P0 failed. Check strapping pins.', 'negative')
return
rosys.notify(f'Flashing Lizard firmware {self.core_version} to P0...')
await self.robot_brain.send('p0.flash()')
start = rosys.time()
deadline = start + timeout
Expand Down

0 comments on commit 2ad1022

Please sign in to comment.