notify phoneAPI about new packages to process

This commit is contained in:
Thomas Göttgens
2023-01-09 20:06:11 +01:00
parent fce52e16e3
commit 3a6e3464e6
3 changed files with 9 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ void PhoneAPI::handleStartConfig()
if (!isConnected()) {
onConnectionChanged(true);
observe(&service.fromNumChanged);
observe(&xModem.packetReady);
}
// even if we were already connected - restart our state machine
@@ -50,6 +51,7 @@ void PhoneAPI::close()
state = STATE_SEND_NOTHING;
unobserve(&service.fromNumChanged);
unobserve(&xModem.packetReady);
releasePhonePacket(); // Don't leak phone packets on shutdown
releaseQueueStatusPhonePacket();