dreampi.py: shake off the modem on first run (from scrivani)

This commit is contained in:
Flyinghead 2025-02-08 16:20:47 +01:00
parent c7499df3a8
commit 84356e3b26
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ class Modem(object):
subprocess.Popen("/home/pi/dreampi/dcnet.rpi")
time.sleep(2)
subprocess.call("sudo killall dcnet.rpi".split())
self.shake_it_off()
self.reset()
self.send_command(b"AT+FCLASS=8") # Enter voice mode
self.send_command(b"AT+VLS=1") # Go off-hook