Skip to content

Commit cddee26

Browse files
committed
Re-factored LIBRARY_VERSION to a separate Version.h file for management by the MySensors Bot.
1 parent b27735a commit cddee26

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

libraries/MySensors/Sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define Sensor_h
1414

1515
#include "Config.h"
16+
#include "Version.h"
1617
#include <nRF24L01.h>
1718
#include <RF24.h>
1819
#include <RF24_config.h>
@@ -29,7 +30,6 @@
2930
#define debug(x,...)
3031
#endif
3132

32-
#define LIBRARY_VERSION "1.2+"
3333
#define PROTOCOL_VERSION 1
3434
#define BAUD_RATE 115200
3535

libraries/MySensors/Version.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/***
2+
* This file defines the Sensor library version number
3+
* Normally, contributors should not modify this directly
4+
* as it is manaaged by the MySensors Bot.
5+
*/
6+
#ifndef Version_h
7+
#define Version_h
8+
9+
#define LIBRARY_VERSION "1.3beta2 (b27735a)"
10+
11+
#endif

0 commit comments

Comments
 (0)