paneldue: convert "paneldue_beep" into a coroutine

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-11-11 04:41:26 -05:00
parent 6dfab37ef8
commit b83211e98d
1 changed files with 2 additions and 3 deletions

View File

@ -292,10 +292,9 @@ class PanelDue:
else:
self.printer_state[obj] = items
def paneldue_beep(self, frequency, duration):
async def paneldue_beep(self, frequency, duration):
duration = int(duration * 1000.)
self.ioloop.spawn_callback(
self.write_response,
await self.write_response(
{'beep_freq': frequency, 'beep_length': duration})
async def process_line(self, line):