mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix/Workaround set-music error when music is already off (#1379)
* Fix/Workaround set-music error when music is already off * Do not ignore error when setting music mode
This commit is contained in:
@@ -151,18 +151,20 @@ public:
|
||||
/// @brief Execute a Yeelight-API command
|
||||
///
|
||||
/// @param[in] command The API command request in JSON
|
||||
/// @param[in] ignoreErrors Return success, even if errors occured
|
||||
/// @return 0: success, -1: error, -2: command quota exceeded
|
||||
///
|
||||
int writeCommand( const QJsonDocument &command );
|
||||
int writeCommand( const QJsonDocument &command, bool ignoreErrors = false );
|
||||
|
||||
///
|
||||
/// @brief Execute a Yeelight-API command
|
||||
///
|
||||
/// @param[in] command The API command request in JSON
|
||||
/// @param[out] result The response to the command in JSON
|
||||
/// @param[in] ignoreErrors Return success, even if errors occured
|
||||
/// @return 0: success, -1: error, -2: command quota exceeded
|
||||
///
|
||||
int writeCommand( const QJsonDocument &command, QJsonArray &result );
|
||||
int writeCommand( const QJsonDocument &command, QJsonArray &result, bool ignoreErrors = false );
|
||||
|
||||
///
|
||||
/// @brief Stream a Yeelight-API command
|
||||
|
Reference in New Issue
Block a user