Skip to content

Commit b482a8e

Browse files
committed
Change argument order for presentation description
1 parent b3bdc52 commit b482a8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void MySensor::sendBatteryLevel(uint8_t value, bool enableAck) {
235235
sendRoute(build(msg, nc.nodeId, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_INTERNAL, I_BATTERY_LEVEL, enableAck).set(value));
236236
}
237237

238-
void MySensor::present(uint8_t childSensorId, uint8_t sensorType, bool enableAck, const char *description) {
238+
void MySensor::present(uint8_t childSensorId, uint8_t sensorType, const char *description, bool enableAck) {
239239
sendRoute(build(msg, nc.nodeId, GATEWAY_ADDRESS, childSensorId, C_PRESENTATION, sensorType, enableAck).set(childSensorId==NODE_SENSOR_ID?LIBRARY_VERSION:description));
240240
}
241241

libraries/MySensors/MySensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class MySensor : public RF24
122122
* @param ack Set this to true if you want destination node to send ack back to this node. Default is not to request any ack.
123123
* @param description A textual description of the sensor.
124124
*/
125-
void present(uint8_t sensorId, uint8_t sensorType, bool ack=false, const char *description="");
125+
void present(uint8_t sensorId, uint8_t sensorType, const char *description="", bool ack=false);
126126

127127
/**
128128
* Sends sketch meta information to the gateway. Not mandatory but a nice thing to do.

0 commit comments

Comments
 (0)