Crashes when not run as root
Closed this issue · 3 comments
lukasmalkmus commented
The library panics when not run as root, because the rip-rgb-led-matrix
needs to do some low-level stuff which requires root access. Instead of panicing, it might be better to recover and return an error in NewRGBLedMatrix()
.
mcuadros commented
Yep, it requires root privileges since it write directly in /dev/mem
. Yep, will be nice handle the panic.
lukasmalkmus commented
I have quickly opened #5. I made the small change in the GitHub editor because I can't access my dev env at the moment. I hope I don't messed up.
lukasmalkmus commented
#5 was merged