fix gpio button

pull/135/head
Simon Stürz 2016-12-27 08:33:38 +01:00 committed by Michael Zanetti
parent f9d9e7e494
commit 613caa30e1
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ DeviceManager::DeviceSetupStatus DevicePluginGpio::setupDevice(Device *device)
return DeviceManager::DeviceSetupStatusSuccess;
}
if (device->deviceClassId() == gpioSwitchRpiDeviceClassId || device->deviceClassId() == gpioSwitchBbbDeviceClassId) {
if (device->deviceClassId() == gpioButtonRpiDeviceClassId || device->deviceClassId() == gpioButtonBbbDeviceClassId) {
GpioMonitor *monior = new GpioMonitor(device->paramValue(gpioParamTypeId).toInt(), this);
if (!monior->enable()) {