From 3dc8a7946a2794e418c9f097770d072ff819b85b Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Thu, 9 May 2024 13:56:13 +0200 Subject: [PATCH] try get away other callback deprecations --- src/mbus-master.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mbus-master.cc b/src/mbus-master.cc index 93c959a..af57341 100644 --- a/src/mbus-master.cc +++ b/src/mbus-master.cc @@ -415,7 +415,7 @@ NAN_METHOD(MbusMaster::Get) { Local argv[] = { Nan::Error("Not connected to port") }; - Nan::Call(callback, 1, argv); + Nan::Call(&callback, 1, argv); } info.GetReturnValue().SetUndefined(); } @@ -619,7 +619,7 @@ NAN_METHOD(MbusMaster::ScanSecondary) { Local argv[] = { Nan::Error("Not connected to port") }; - Nan::Call(callback, 1, argv); + Nan::Call(&callback, 1, argv); } info.GetReturnValue().SetUndefined(); } @@ -806,7 +806,7 @@ NAN_METHOD(MbusMaster::SetPrimaryId) { Local argv[] = { Nan::Error("Not connected to port") }; - Nan::Call(callback, 1, argv); + Nan::Call(&callback, 1, argv); } info.GetReturnValue().SetUndefined(); }