Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvandermarel committed Aug 26, 2022
1 parent 9018305 commit 166cb2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/PowerUsage.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <microapp.h>

class PowerUsage{
class PowerUsage {
public:
// Empty constructor
PowerUsage(){};
Expand Down
8 changes: 4 additions & 4 deletions src/PowerUsage.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <PowerUsage.h>

int32_t PowerUsage::getPowerUsageMilliWatts() {
uint8_t* out = getOutgoingMessagePayload();
uint8_t* out = getOutgoingMessagePayload();
microapp_sdk_power_usage_t* powerRequest = reinterpret_cast<microapp_sdk_power_usage_t*>(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;
Expand Down
10 changes: 5 additions & 5 deletions src/Presence.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <Presence.h>

uint64_t Presence::getPresence(uint8_t profileId) {
uint8_t* out = getOutgoingMessagePayload();
uint8_t* out = getOutgoingMessagePayload();
microapp_sdk_presence_t* presenceRequest = reinterpret_cast<microapp_sdk_presence_t*>(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;
Expand Down

0 comments on commit 166cb2b

Please sign in to comment.