mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 06:33:09 +00:00
Add comment that torch path is hardcoded for now
This commit is contained in:
parent
407ffc0f4c
commit
2fab1b0dd1
1 changed files with 1 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ void PhonePanel::executeCommand(const QString &command)
|
||||||
|
|
||||||
void PhonePanel::toggleTorch()
|
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";
|
static auto FLASH_SYSFS_PATH = "/sys/devices/platform/led-controller/leds/white:flash/brightness";
|
||||||
int fd = open(FLASH_SYSFS_PATH, O_WRONLY);
|
int fd = open(FLASH_SYSFS_PATH, O_WRONLY);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue