Skip to content

Commit 6004516

Browse files
committed
Remove redundant naming
1 parent 1819548 commit 6004516

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

FirmataConstants.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ namespace firmata {
1919
* The firmware version will not always equal the protocol version going forward.
2020
* Query using the REPORT_FIRMWARE message.
2121
*/
22-
static const int FIRMATA_FIRMWARE_MAJOR_VERSION = 2;
23-
static const int FIRMATA_FIRMWARE_MINOR_VERSION = 5;
24-
static const int FIRMATA_FIRMWARE_BUGFIX_VERSION = 4;
22+
static const int FIRMWARE_MAJOR_VERSION = 2;
23+
static const int FIRMWARE_MINOR_VERSION = 5;
24+
static const int FIRMWARE_BUGFIX_VERSION = 4;
2525

2626
/* Version numbers for the protocol. The protocol is still changing, so these
2727
* version numbers are important.
2828
* Query using the REPORT_VERSION message.
2929
*/
30-
static const int FIRMATA_PROTOCOL_MAJOR_VERSION = 2; // for non-compatible changes
31-
static const int FIRMATA_PROTOCOL_MINOR_VERSION = 5; // for backwards compatible changes
32-
static const int FIRMATA_PROTOCOL_BUGFIX_VERSION = 1; // for bugfix releases
30+
static const int PROTOCOL_MAJOR_VERSION = 2; // for non-compatible changes
31+
static const int PROTOCOL_MINOR_VERSION = 5; // for backwards compatible changes
32+
static const int PROTOCOL_BUGFIX_VERSION = 1; // for bugfix releases
3333

34-
static const int MAX_DATA_BYTES = 64; // max number of data bytes in incoming messages
34+
static const int MAX_DATA_BYTES = 64; // max number of data bytes in incoming messages
3535

3636
// message command bytes (128-255/0x80-0xFF)
3737

FirmataDefines.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
* The firmware version will not always equal the protocol version going forward.
2121
* Query using the REPORT_FIRMWARE message.
2222
*/
23-
#define FIRMATA_FIRMWARE_MAJOR_VERSION firmata::FIRMATA_FIRMWARE_MAJOR_VERSION
24-
#define FIRMATA_FIRMWARE_MINOR_VERSION firmata::FIRMATA_FIRMWARE_MINOR_VERSION
25-
#define FIRMATA_FIRMWARE_BUGFIX_VERSION firmata::FIRMATA_FIRMWARE_BUGFIX_VERSION
23+
#define FIRMATA_FIRMWARE_MAJOR_VERSION firmata::FIRMWARE_MAJOR_VERSION
24+
#define FIRMATA_FIRMWARE_MINOR_VERSION firmata::FIRMWARE_MINOR_VERSION
25+
#define FIRMATA_FIRMWARE_BUGFIX_VERSION firmata::FIRMWARE_BUGFIX_VERSION
2626

2727
/* Version numbers for the protocol. The protocol is still changing, so these
2828
* version numbers are important.
2929
* Query using the REPORT_VERSION message.
3030
*/
31-
#define FIRMATA_PROTOCOL_MAJOR_VERSION firmata::FIRMATA_PROTOCOL_MAJOR_VERSION // for non-compatible changes
32-
#define FIRMATA_PROTOCOL_MINOR_VERSION firmata::FIRMATA_PROTOCOL_MINOR_VERSION // for backwards compatible changes
33-
#define FIRMATA_PROTOCOL_BUGFIX_VERSION firmata::FIRMATA_PROTOCOL_BUGFIX_VERSION // for bugfix releases
31+
#define FIRMATA_PROTOCOL_MAJOR_VERSION firmata::PROTOCOL_MAJOR_VERSION // for non-compatible changes
32+
#define FIRMATA_PROTOCOL_MINOR_VERSION firmata::PROTOCOL_MINOR_VERSION // for backwards compatible changes
33+
#define FIRMATA_PROTOCOL_BUGFIX_VERSION firmata::PROTOCOL_BUGFIX_VERSION // for bugfix releases
3434

3535
#ifdef MAX_DATA_BYTES
3636
#undef MAX_DATA_BYTES

0 commit comments

Comments
 (0)