diff --git a/source/indi-device-watchdog/device_data_persistance.cpp b/source/indi-device-watchdog/device_data_persistance.cpp index a3c6d12..61b189e 100644 --- a/source/indi-device-watchdog/device_data_persistance.cpp +++ b/source/indi-device-watchdog/device_data_persistance.cpp @@ -88,5 +88,4 @@ namespace device_data_persistance { // boost::property_tree::json_parser::write_json(std::cout, rootPt); // } -}; - +} diff --git a/source/indi-device-watchdog/device_data_persistance.h b/source/indi-device-watchdog/device_data_persistance.h index a49cdaa..6cddf66 100644 --- a/source/indi-device-watchdog/device_data_persistance.h +++ b/source/indi-device-watchdog/device_data_persistance.h @@ -41,6 +41,6 @@ namespace device_data_persistance { std::vector load(const std::filesystem::path & configFilePath); void save(const std::vector & deviceDataVec, const std::filesystem::path & configFilePath); -}; +} #endif /* SOURCE_DEVICE_DATA_PERSIST_H_ */ diff --git a/source/indi-device-watchdog/indi_client.cpp b/source/indi-device-watchdog/indi_client.cpp index 5ed7f3f..b55bf83 100644 --- a/source/indi-device-watchdog/indi_client.cpp +++ b/source/indi-device-watchdog/indi_client.cpp @@ -59,36 +59,36 @@ void IndiClientT::newSwitch(ISwitchVectorProperty* svp) { std::string deviceName(svp->device); std::string propertyName(svp->name); INDI::BaseDevice* baseDevicePtr = getDevice(deviceName.c_str()); - INDI::Property property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_SWITCH); + INDI::Property* property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_SWITCH); - notifyUpdateProperty(property); + notifyUpdateProperty(*property); } void IndiClientT::newNumber(INumberVectorProperty* nvp) { std::string deviceName(nvp->device); std::string propertyName(nvp->name); INDI::BaseDevice* baseDevicePtr = getDevice(deviceName.c_str()); - INDI::Property property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_NUMBER); + INDI::Property* property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_NUMBER); - notifyUpdateProperty(property); + notifyUpdateProperty(*property); } void IndiClientT::newText(ITextVectorProperty* tvp) { std::string deviceName(tvp->device); std::string propertyName(tvp->name); INDI::BaseDevice* baseDevicePtr = getDevice(deviceName.c_str()); - INDI::Property property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_TEXT); + INDI::Property* property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_TEXT); - notifyUpdateProperty(property); + notifyUpdateProperty(*property); } void IndiClientT::newLight(ILightVectorProperty* lvp) { std::string deviceName(lvp->device); std::string propertyName(lvp->name); INDI::BaseDevice* baseDevicePtr = getDevice(deviceName.c_str()); - INDI::Property property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_LIGHT); + INDI::Property* property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_LIGHT); - notifyUpdateProperty(property); + notifyUpdateProperty(*property); } void IndiClientT::newBLOB(IBLOB* bp) { @@ -96,9 +96,9 @@ void IndiClientT::newBLOB(IBLOB* bp) { std::string deviceName(blobPropVec->device); std::string propertyName(blobPropVec->name); INDI::BaseDevice* baseDevicePtr = getDevice(deviceName.c_str()); - INDI::Property property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_BLOB); + INDI::Property* property = baseDevicePtr->getProperty(propertyName.c_str(), INDI_BLOB); - notifyUpdateProperty(property); + notifyUpdateProperty(*property); } void IndiClientT::newMessage(INDI::BaseDevice * dp, int messageID) {