WLED segment streaming support (#1556)

* WLED segment streaming support

* Address CodeQL findings

* WLED - Remove that interim color is shown when WLED is powered off

* Allow LEDDevice to stay on after streaming

* Apply stayOn on segment streamed to

* Fix LED-Matrix Layout: Add Cabling direction selection element again
This commit is contained in:
LordGrey
2023-02-07 07:15:22 +00:00
committed by GitHub
parent ef7ceb0bbf
commit a57bcbc2b8
11 changed files with 2078 additions and 1526 deletions

View File

@@ -207,12 +207,12 @@ bool ProviderRs232::tryOpen(int delayAfterConnect_ms)
return _rs232Port.isOpen();
}
void ProviderRs232::setInError(const QString& errorMsg)
void ProviderRs232::setInError(const QString& errorMsg, bool isRecoverable)
{
_rs232Port.clearError();
this->close();
LedDevice::setInError( errorMsg );
LedDevice::setInError( errorMsg, isRecoverable );
}
int ProviderRs232::writeBytes(const qint64 size, const uint8_t *data)

View File

@@ -119,9 +119,10 @@ protected slots:
///
/// @brief Set device in error state
///
/// @param errorMsg The error message to be logged
/// @param[in] errorMsg The error message to be logged
/// @param[in] isRecoverable If False, no further retries will be done
///
void setInError( const QString& errorMsg) override;
void setInError( const QString& errorMsg, bool isRecoverable=true) override;
///
/// @brief Handle any feedback provided by the device