Skip to content

Commit 09dfbeb

Browse files
authored
Merge pull request #489 from joshuacox/MYSENSORS_LIBRARY_VERSION
making MYSENSORS_LIBRARY_VERSION for purposes of being more unique
2 parents 2279dc1 + 2550407 commit 09dfbeb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libraries/MySensors/core/MyGatewayTransport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ inline void gatewayTransportProcess() {
4040
if (mGetCommand(_msg) == C_INTERNAL) {
4141
if (_msg.type == I_VERSION) {
4242
// Request for version. Create the response
43-
gatewayTransportSend(buildGw(_msg, I_VERSION).set(LIBRARY_VERSION));
43+
gatewayTransportSend(buildGw(_msg, I_VERSION).set(MYSENSORS_LIBRARY_VERSION));
4444
#ifdef MY_INCLUSION_MODE_FEATURE
4545
} else if (_msg.type == I_INCLUSION_MODE) {
4646
// Request to change inclusion mode

libraries/MySensors/core/MySensorsCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void _begin() {
7373
if (before)
7474
before();
7575

76-
debug(PSTR("Starting " MY_NODE_TYPE " (" MY_CAPABILITIES ", " LIBRARY_VERSION ")\n"));
76+
debug(PSTR("Starting " MY_NODE_TYPE " (" MY_CAPABILITIES ", " MYSENSORS_LIBRARY_VERSION ")\n"));
7777

7878
#if defined(MY_LEDS_BLINKING_FEATURE)
7979
ledsInit();
@@ -278,7 +278,7 @@ void sendHeartbeat(void) {
278278
}
279279

280280
void present(uint8_t childSensorId, uint8_t sensorType, const char *description, bool enableAck) {
281-
_sendRoute(build(_msgTmp, _nc.nodeId, GATEWAY_ADDRESS, childSensorId, C_PRESENTATION, sensorType, enableAck).set(childSensorId==NODE_SENSOR_ID?LIBRARY_VERSION:description));
281+
_sendRoute(build(_msgTmp, _nc.nodeId, GATEWAY_ADDRESS, childSensorId, C_PRESENTATION, sensorType, enableAck).set(childSensorId==NODE_SENSOR_ID?MYSENSORS_LIBRARY_VERSION:description));
282282
}
283283

284284
void sendSketchInfo(const char *name, const char *version, bool enableAck) {

libraries/MySensors/core/Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/***
2-
* This file defines the Sensor library version number
2+
* This file defines the Sensor library version number
33
* Normally, contributors should not modify this directly
44
* as it is managed by the MySensors Bot.
55
*/
66
#ifndef Version_h
77
#define Version_h
88

9-
#define LIBRARY_VERSION "2.0.0-beta"
9+
#define MYSENSORS_LIBRARY_VERSION "2.0.0-beta"
1010

1111
#endif

0 commit comments

Comments
 (0)