diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index d7d9b3d..a27bfc1 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -1094,7 +1094,7 @@ QStringList ATBDeviceControllerPlugin::getPluginInfoList() { QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface::RESULT_STATE resultState) { - QString str; + static QString str; switch (resultState) { case nsDeviceControllerInterface::RESULT_STATE::SUCCESS: @@ -1115,6 +1115,15 @@ QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface: case nsDeviceControllerInterface::RESULT_STATE::INFO: str = QString("RESULT_STATE::INFO"); break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_NETWORK: + str = QString("RESULT_STATE::ERROR_NETWORK"); + break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_BUSY: + str = QString("RESULT_STATE::ERROR_BUSY"); + break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_STATE: + str = QString("RESULT_STATE::ERROR_STATE"); + break; } return str;