Disable IR switch before setting torch (#34725)

switch reset
pull/34728/head
Maxime Desroches 2 months ago committed by GitHub
parent 29ca4aa7de
commit 25463deeec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      system/hardware/tici/hardware.h

@ -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";
}

Loading…
Cancel
Save