Merge pull request #489 from joshuacox/MYSENSORS_LIBRARY_VERSION
making MYSENSORS_LIBRARY_VERSION for purposes of being more unique
This commit is contained in:
@@ -40,7 +40,7 @@ inline void gatewayTransportProcess() {
|
|||||||
if (mGetCommand(_msg) == C_INTERNAL) {
|
if (mGetCommand(_msg) == C_INTERNAL) {
|
||||||
if (_msg.type == I_VERSION) {
|
if (_msg.type == I_VERSION) {
|
||||||
// Request for version. Create the response
|
// Request for version. Create the response
|
||||||
gatewayTransportSend(buildGw(_msg, I_VERSION).set(LIBRARY_VERSION));
|
gatewayTransportSend(buildGw(_msg, I_VERSION).set(MYSENSORS_LIBRARY_VERSION));
|
||||||
#ifdef MY_INCLUSION_MODE_FEATURE
|
#ifdef MY_INCLUSION_MODE_FEATURE
|
||||||
} else if (_msg.type == I_INCLUSION_MODE) {
|
} else if (_msg.type == I_INCLUSION_MODE) {
|
||||||
// Request to change inclusion mode
|
// Request to change inclusion mode
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ void _begin() {
|
|||||||
if (before)
|
if (before)
|
||||||
before();
|
before();
|
||||||
|
|
||||||
debug(PSTR("Starting " MY_NODE_TYPE " (" MY_CAPABILITIES ", " LIBRARY_VERSION ")\n"));
|
debug(PSTR("Starting " MY_NODE_TYPE " (" MY_CAPABILITIES ", " MYSENSORS_LIBRARY_VERSION ")\n"));
|
||||||
|
|
||||||
#if defined(MY_LEDS_BLINKING_FEATURE)
|
#if defined(MY_LEDS_BLINKING_FEATURE)
|
||||||
ledsInit();
|
ledsInit();
|
||||||
@@ -278,7 +278,7 @@ void sendHeartbeat(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void present(uint8_t childSensorId, uint8_t sensorType, const char *description, bool enableAck) {
|
void present(uint8_t childSensorId, uint8_t sensorType, const char *description, bool enableAck) {
|
||||||
_sendRoute(build(_msgTmp, _nc.nodeId, GATEWAY_ADDRESS, childSensorId, C_PRESENTATION, sensorType, enableAck).set(childSensorId==NODE_SENSOR_ID?LIBRARY_VERSION:description));
|
_sendRoute(build(_msgTmp, _nc.nodeId, GATEWAY_ADDRESS, childSensorId, C_PRESENTATION, sensorType, enableAck).set(childSensorId==NODE_SENSOR_ID?MYSENSORS_LIBRARY_VERSION:description));
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendSketchInfo(const char *name, const char *version, bool enableAck) {
|
void sendSketchInfo(const char *name, const char *version, bool enableAck) {
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
#ifndef Version_h
|
#ifndef Version_h
|
||||||
#define Version_h
|
#define Version_h
|
||||||
|
|
||||||
#define LIBRARY_VERSION "2.0.0-beta"
|
#define MYSENSORS_LIBRARY_VERSION "2.0.0-beta"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user