diff --git a/include/PowerUsage.h b/include/PowerUsage.h index c3d277c..a8e21c3 100644 --- a/include/PowerUsage.h +++ b/include/PowerUsage.h @@ -2,7 +2,7 @@ #include -class PowerUsage{ +class PowerUsage { public: // Empty constructor PowerUsage(){}; diff --git a/src/PowerUsage.cpp b/src/PowerUsage.cpp index 633a5f2..372b8d9 100644 --- a/src/PowerUsage.cpp +++ b/src/PowerUsage.cpp @@ -1,11 +1,11 @@ #include int32_t PowerUsage::getPowerUsageMilliWatts() { - uint8_t* out = getOutgoingMessagePayload(); + uint8_t* out = getOutgoingMessagePayload(); microapp_sdk_power_usage_t* powerRequest = reinterpret_cast(out); - powerRequest->header.messageType = CS_MICROAPP_SDK_TYPE_POWER_USAGE; - powerRequest->header.ack = CS_MICROAPP_SDK_ACK_REQUEST; - powerRequest->type = CS_MICROAPP_SDK_POWER_USAGE_POWER; + powerRequest->header.messageType = CS_MICROAPP_SDK_TYPE_POWER_USAGE; + powerRequest->header.ack = CS_MICROAPP_SDK_ACK_REQUEST; + powerRequest->type = CS_MICROAPP_SDK_POWER_USAGE_POWER; sendMessage(); if (powerRequest->header.ack != CS_MICROAPP_SDK_ACK_SUCCESS) { return -1; diff --git a/src/Presence.cpp b/src/Presence.cpp index cff0602..866cb4a 100644 --- a/src/Presence.cpp +++ b/src/Presence.cpp @@ -1,12 +1,12 @@ #include uint64_t Presence::getPresence(uint8_t profileId) { - uint8_t* out = getOutgoingMessagePayload(); + uint8_t* out = getOutgoingMessagePayload(); microapp_sdk_presence_t* presenceRequest = reinterpret_cast(out); - presenceRequest->header.messageType = CS_MICROAPP_SDK_TYPE_PRESENCE; - presenceRequest->header.ack = CS_MICROAPP_SDK_ACK_REQUEST; - presenceRequest->profileId = profileId; - presenceRequest->presenceBitmask = 0; + presenceRequest->header.messageType = CS_MICROAPP_SDK_TYPE_PRESENCE; + presenceRequest->header.ack = CS_MICROAPP_SDK_ACK_REQUEST; + presenceRequest->profileId = profileId; + presenceRequest->presenceBitmask = 0; sendMessage(); if (presenceRequest->header.ack != CS_MICROAPP_SDK_ACK_SUCCESS) { return 0;