Index: sources/device/DeviceModels.cpp =================================================================== diff -u -rf0c8b8720a2e314268445a4a20fe701292026f6f -ra2a273600d25e863214833ead3324a63fb4759f1 --- sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision f0c8b8720a2e314268445a4a20fe701292026f6f) +++ sources/device/DeviceModels.cpp (.../DeviceModels.cpp) (revision a2a273600d25e863214833ead3324a63fb4759f1) @@ -303,12 +303,12 @@ } /*! - * \brief MDeviceConnectWifiResponse::fromByteArray + * \brief MDeviceWifiConnectResponse::fromByteArray * \details Checks the response and sets up the model data. * \param vExitCode - Passed script exit code * \return true if passed. */ -bool MDeviceConnectWifiResponse::fromByteArray(const QByteArray &vByteArray, int *vExitCode) +bool MDeviceWifiConnectResponse::fromByteArray(const QByteArray &vByteArray, int *vExitCode) { // initialize data bool ok = false; @@ -321,8 +321,8 @@ // check if the vExitCode passed and it has a value other than zero if ( ! ok ){ _data.mReason = Device::DeviceError::eDevice_Scripts_Error_Incorrect_Rsp_Type ; goto lError; } // there is not a valid value - if ( vExitCode && *vExitCode ){ _data.mReason = _data.mConnect ? Device::DeviceError::eDevice_ConnectWifi_Error : - Device::DeviceError::eDevice_DisconnectWifi_Error; goto lApply; } // there still a valid value + if ( vExitCode && *vExitCode ){ _data.mReason = _data.mConnect ? Device::DeviceError::eDevice_WifiConnect_Error : + Device::DeviceError::eDevice_WifiDisconnect_Error; goto lApply; } // there still a valid value // Now everything is good to extract the data _data.mAccepted = true;