Update LED serial communication
This commit is contained in:
parent
39c10452e8
commit
172a91c740
@ -46,16 +46,16 @@ class PhoneLineEventHandler():
|
|||||||
)
|
)
|
||||||
if line.DispState != LineState.Inactive:
|
if line.DispState != LineState.Inactive:
|
||||||
if line.DispState == LineState.Ringing:
|
if line.DispState == LineState.Ringing:
|
||||||
sendSerial(b'y')
|
sendSerial(b'shc131139131')
|
||||||
else:
|
else:
|
||||||
sendSerial(b'r')
|
sendSerial(b'shc255029000')
|
||||||
asyncio.run(try_pause())
|
asyncio.run(try_pause())
|
||||||
for linenum in range(self.phone_mgr.DispNumberOfLines):
|
for linenum in range(self.phone_mgr.DispNumberOfLines):
|
||||||
line = self.phone_mgr.DispGetLine(linenum)
|
line = self.phone_mgr.DispGetLine(linenum)
|
||||||
if line.DispState != LineState.Inactive:
|
if line.DispState != LineState.Inactive:
|
||||||
return True
|
return True
|
||||||
asyncio.run(try_play())
|
asyncio.run(try_play())
|
||||||
sendSerial(b'o')
|
sendSerial(b'shc000000000')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# async def get_media_info():
|
# async def get_media_info():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user