From 2fab1b0dd104ac74f2f6aee6cd6468294330077a Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 11 Nov 2020 13:52:19 +0100 Subject: [PATCH] Add comment that torch path is hardcoded for now --- containments/panel/phonepanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/containments/panel/phonepanel.cpp b/containments/panel/phonepanel.cpp index 81409bca..ebffe502 100644 --- a/containments/panel/phonepanel.cpp +++ b/containments/panel/phonepanel.cpp @@ -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);