Skip to content

Commit 26cab6b

Browse files
committed
Preparing to merge
1 parent 26ca626 commit 26cab6b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5-
6-
## [1.1.0]
75
### Added
86
- MQTT Topic `panel-time` to get/set the alarm panel time
97
- MQTT Topic `partition-N-access-code` the access code is published whenever the alarm was armed/disarmed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <dscKeybusInterface.h>
2121
#include <time.h>
2222

23-
#define SOFTWARE_VERSION "1.1.0 Build 10"
23+
#define SOFTWARE_VERSION "1.1.0 Build 11"
2424

2525
// Configures the Keybus interface with the specified pins
2626
// dscWritePin is optional, leaving it out disables the virtual keypad.
@@ -186,7 +186,7 @@ void loopHandler() {
186186

187187
bool onKeypad(const HomieRange& range, const String& command) {
188188
static char commandBuffer[256];
189-
if (command.length > sizeof(commandBuffer)/sizeof(commandBuffer[0])) {
189+
if (command.length() > sizeof(commandBuffer)/sizeof(commandBuffer[0])) {
190190
homieNode.setProperty("message").setRetained(false).send("Keypad data is too long");
191191
} else {
192192
strcpy(commandBuffer, command.c_str());

0 commit comments

Comments
 (0)