Build(): Remove obsolete parameter

This commit is contained in:
tekka007
2016-10-01 15:50:59 +02:00
parent 7097802de4
commit 3c8ea78f45
5 changed files with 33 additions and 35 deletions
+3 -3
View File
@@ -400,8 +400,8 @@ void loop() __attribute__((weak));
// Inline function and macros
static inline MyMessage& build(MyMessage &msg, uint8_t sender, uint8_t destination, uint8_t sensor, uint8_t command, uint8_t type, bool enableAck) {
msg.sender = sender;
static inline MyMessage& build(MyMessage &msg, const uint8_t destination, const uint8_t sensor, const uint8_t command, const uint8_t type, const bool enableAck) {
msg.sender = _nc.nodeId;
msg.destination = destination;
msg.sensor = sensor;
msg.type = type;
@@ -411,7 +411,7 @@ static inline MyMessage& build(MyMessage &msg, uint8_t sender, uint8_t destinati
return msg;
}
static inline MyMessage& buildGw(MyMessage &msg, uint8_t type) {
static inline MyMessage& buildGw(MyMessage &msg, const uint8_t type) {
msg.sender = GATEWAY_ADDRESS;
msg.destination = GATEWAY_ADDRESS;
msg.sensor = NODE_SENSOR_ID;