Skip to content

Commit

Permalink
PingBootloader: Move from deprecated pingmessage to definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jan 14, 2020
1 parent 5eb1ac7 commit e9964f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/PingBootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# we shut down the proxy before communicating with the device
# then restart the proxy when we are finished

from brping import Ping1D, PingMessage, pingmessage
from brping import Ping1D, PingMessage, definitions
import platform
import time
import os
Expand Down Expand Up @@ -48,7 +48,7 @@

# send ping device to bootloader
print("Sending device to bootloader...")
bootloader_msg = PingMessage(pingmessage.PING1D_GOTO_BOOTLOADER)
bootloader_msg = PingMessage(definitions.PING1D_GOTO_BOOTLOADER)
bootloader_msg.pack_msg_data()
myPing.iodev.write(bootloader_msg.msg_data)

Expand Down

0 comments on commit e9964f9

Please sign in to comment.