Skip to content

Commit 5686303

Browse files
committed
[fix] Enable writeConfig function for openzwave version < 16
1 parent de923b5 commit 5686303

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/openzwave-management.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ namespace OZW {
357357
OZWManager( CancelControllerCommand, homeid);
358358
}
359359

360-
#ifdef OPENZWAVE16_DEPRECATED
360+
#if !(OPENZWAVE_16)
361361
// =================================================================
362362
NAN_METHOD(OZW::WriteConfig)
363363
// =================================================================

src/openzwave.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace OZW {
108108
Nan::SetPrototypeMethod(t, "beginControllerCommand", OZW::BeginControllerCommand);
109109
#endif
110110
Nan::SetPrototypeMethod(t, "cancelControllerCommand", OZW::CancelControllerCommand);
111-
#ifdef OPENZWAVE16_DEPRECATED
111+
#if !(OPENZWAVE_16)
112112
Nan::SetPrototypeMethod(t, "writeConfig", OZW::WriteConfig);
113113
#endif
114114
Nan::SetPrototypeMethod(t, "getDriverStatistics", OZW::GetDriverStatistics);

src/openzwave.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace OZW {
102102
static NAN_METHOD(BeginControllerCommand);
103103
#endif
104104
static NAN_METHOD(CancelControllerCommand);
105-
#ifdef OPENZWAVE16_DEPRECATED
105+
#if !(OPENZWAVE_16)
106106
static NAN_METHOD(WriteConfig);
107107
#endif
108108
static NAN_METHOD(GetDriverStatistics);

0 commit comments

Comments
 (0)