Skip to content

Commit 2c46b25

Browse files
committed
Fix code style
1 parent b204653 commit 2c46b25

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/BatteryMonitorLPP/BatteryMonitorLPP.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CayenneLPP lpp(16);
2424
// Interval between send in seconds, so 300s = 5min
2525
#define CONFIG_INTERVAL ((uint32_t) 300)
2626

27-
void sendData(uint8_t port=PORT_SETUP, uint32_t duration=0);
27+
void sendData(uint8_t port = PORT_SETUP, uint32_t duration = 0);
2828

2929
// This is called on each interval we defined so mainly
3030
// this is where we need to do our job
@@ -97,13 +97,13 @@ void sendData(uint8_t port, uint32_t value)
9797
debugSerial.print(F("Button:\t"));
9898
debugSerial.print(value);
9999
debugSerial.println(F("ms"));
100-
lpp.addAnalogInput(7, value/1000.0);
100+
lpp.addAnalogInput(7, value / 1000.0);
101101
}
102102

103103
ttn.sendBytes(lpp.getBuffer(), lpp.getSize(), port);
104104

105105
// Set RN2483 to sleep mode
106-
ttn.sleep( CONFIG_INTERVAL*1000 );
106+
ttn.sleep(CONFIG_INTERVAL * 1000);
107107

108108
// This one is not optionnal, remove it
109109
// and say bye bye to RN2983 sleep mode

examples/CayenneLPP/CayenneLPP.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ void sendData(uint8_t port)
117117

118118
ttn.sendBytes(lpp.getBuffer(), lpp.getSize(), port);
119119

120-
// Set RN2483 to sleep mode
121-
ttn.sleep( 60000 );
120+
// Set RN module to sleep mode
121+
ttn.sleep(60000);
122122
}
123123

124124
void printSensors()

0 commit comments

Comments
 (0)