Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into pairing-filter-regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Feb 7, 2025
2 parents 4bc4d3d + d0508a6 commit 4f1c9ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions daemon/src/deviceinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,14 +945,14 @@ void DeviceInterface::registerDBus()
if (!connection.registerService(SERVICE))
{
qCritical() << Q_FUNC_INFO << "Unable to register service. Quit.";
QCoreApplication::quit();
exit(1);
return;
}

if (!connection.registerObject(PATH, this, QDBusConnection::ExportAllInvokables | QDBusConnection::ExportAllSignals | QDBusConnection::ExportAllProperties))
{
qCritical() << Q_FUNC_INFO << "Unable to register objects. Quit.";
QCoreApplication::quit();
exit(1);
return;
}
m_dbusRegistered = true;
Expand Down
4 changes: 2 additions & 2 deletions daemon/src/services/mibandservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ void MiBandService::characteristicChanged(const QString &characteristic, const Q

if (characteristic == UUID_CHARACTERISTIC_MIBAND_DEVICE_EVENT) {
if (value[0] == EVENT_DECLINE_CALL) {
emit serviceEvent(AbstractDevice::EVENT_DECLINE_CALL);
emit serviceEvent(EVENT_DECLINE_CALL);
} else if (value[0] == EVENT_IGNORE_CALL) {
emit serviceEvent(AbstractDevice::EVENT_IGNORE_CALL);
emit serviceEvent(EVENT_IGNORE_CALL);
} else if (value[0] == EVENT_BUTTON) {
emit buttonPressed();
} else if (value[0] == EVENT_MUSIC) {
Expand Down

0 comments on commit 4f1c9ba

Please sign in to comment.