some cleanup

This commit is contained in:
Dorian Zedler 2020-04-19 22:40:56 +02:00
parent 130213d09d
commit bb3b71e1a8
Signed by: dorian
GPG key ID: 989DE36109AFA354
3 changed files with 3 additions and 4 deletions

View file

@ -141,7 +141,7 @@ public slots:
* \brief Function to pair all extensions that are currently connected via USB to the base station * \brief Function to pair all extensions that are currently connected via USB to the base station
* \return whether the pairing was successfull * \return whether the pairing was successfull
*/ */
bool pairConnectedUsbExtensions(); int pairConnectedUsbExtensions();
/*! /*!
* \brief Function to write a setting on the base station * \brief Function to write a setting on the base station

View file

@ -409,10 +409,9 @@ bool ScStwClient::isFirmwareUpToDate() {
// --- helper functions --- // --- helper functions ---
// ------------------------ // ------------------------
bool ScStwClient::pairConnectedUsbExtensions() { int ScStwClient::pairConnectedUsbExtensions() {
QVariantMap ret = this->sendCommand(5002, "", 10000); QVariantMap ret = this->sendCommand(5002, "", 10000);
qDebug() << ret; return ret["status"].toInt();
return ScStw::StatusCode(ret["status"].toInt()) == ScStw::Success;
} }
ScStw::StatusCode ScStwClient::writeRemoteSetting(ScStw::BaseStationSetting key, QString value) { ScStw::StatusCode ScStwClient::writeRemoteSetting(ScStw::BaseStationSetting key, QString value) {

Binary file not shown.