audio_modem: update plugin to work with latest version.

Loading the library is now done after creating the interface.
This commit is contained in:
Roman Zeyde 2015-01-25 15:23:26 +02:00
parent 189d211429
commit 50c2efc32a
1 changed files with 2 additions and 4 deletions

View File

@ -106,10 +106,8 @@ class Plugin(BasePlugin):
button.clicked.connect(handler)
def _audio_interface(self):
return amodem.audio.Interface(
config=self.modem_config,
name=self.library_name
)
interface = amodem.audio.Interface(config=self.modem_config)
return interface.load(self.library_name)
def _send(self, parent, blob):
def sender_thread():