respect OBK_DISABLE_ALL_DRIVERS

This commit is contained in:
Tester23
2024-05-05 11:09:12 +02:00
parent 6138d65197
commit 726cf19146

View File

@ -172,10 +172,13 @@ int http_fn_index(http_request_t* request) {
// user override is always stronger, so if no override set
if (bForceShowRGB == false && bForceShowRGB == false) {
#ifndef OBK_DISABLE_ALL_DRIVERS
if (DRV_IsRunning("SM16703P")) {
bForceShowRGB = true;
}
else if (LED_IsLedDriverChipRunning()) {
else
#endif
if (LED_IsLedDriverChipRunning()) {
bForceShowRGBCW = true;
}
}