Disable IR switch before setting torch (#34725)

switch reset
This commit is contained in:
Maxime Desroches
2025-02-27 17:20:32 -08:00
committed by GitHub
parent 29ca4aa7de
commit 25463deeec
+1
View File
@@ -76,6 +76,7 @@ public:
}
int value = util::map_val(std::clamp(percent, 0, 100), 0, 100, 0, 255);
std::ofstream("/sys/class/leds/led:switch_2/brightness") << 0 << "\n";
std::ofstream("/sys/class/leds/led:torch_2/brightness") << value << "\n";
std::ofstream("/sys/class/leds/led:switch_2/brightness") << value << "\n";
}