Fixed piblaster support (#448)

added "sudo" to the CompileHowto
This commit is contained in:
penfold42 2017-07-06 07:19:44 +10:00 committed by brindosch
parent e98122c9cb
commit a99b7c5f59
2 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ cd build
cmake -DCMAKE_BUILD_TYPE=Release .. cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $(nproc) make -j $(nproc)
# optional: install into your system # optional: install into your system
make install/strip sudo make install/strip
# to uninstall (not very well tested, please keep that in mind) # to uninstall (not very well tested, please keep that in mind)
make uninstall sudo make uninstall
# ... or run it from compile directory # ... or run it from compile directory
bin/hyperiond myconfig.json bin/hyperiond myconfig.json
# webui is located on localhost:8099 # webui is located on localhost:8099

View File

@ -44,7 +44,7 @@ bool LedDevicePiBlaster::init(const QJsonObject &deviceConfig)
{ {
LedDevice::init(deviceConfig); LedDevice::init(deviceConfig);
QString _deviceName = deviceConfig["output"].toString("/dev/pi-blaster"); _deviceName = deviceConfig["output"].toString("/dev/pi-blaster");
QJsonArray gpioMapping = deviceConfig["gpiomap"].toArray(); QJsonArray gpioMapping = deviceConfig["gpiomap"].toArray();
if (gpioMapping.isEmpty()) if (gpioMapping.isEmpty())