Add comment that torch path is hardcoded for now

This commit is contained in:
Nicolas Fella 2020-11-11 13:52:19 +01:00
parent 407ffc0f4c
commit 2fab1b0dd1

View file

@ -95,6 +95,7 @@ void PhonePanel::executeCommand(const QString &command)
void PhonePanel::toggleTorch()
{
// FIXME this is hardcoded to the PinePhone for now
static auto FLASH_SYSFS_PATH = "/sys/devices/platform/led-controller/leds/white:flash/brightness";
int fd = open(FLASH_SYSFS_PATH, O_WRONLY);