There are some sanity checks that should be added.
If you try echo "rgb" > /run/g13d/g13-0 or echo "dump" > /run/g13d/g13-0, the program fails with a core dump.
I'm not familiar with C++ and cannot provide a MR to fix that :( but a bad command should return an error, not crashing the program
There are some sanity checks that should be added.
If you try
echo "rgb" > /run/g13d/g13-0orecho "dump" > /run/g13d/g13-0, the program fails with a core dump.I'm not familiar with C++ and cannot provide a MR to fix that :( but a bad command should return an error, not crashing the program