Skip to content

Commit

Permalink
try get away other callback deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed May 9, 2024
1 parent d724a29 commit 3dc8a79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbus-master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ NAN_METHOD(MbusMaster::Get) {
Local<Value> argv[] = {
Nan::Error("Not connected to port")
};
Nan::Call(callback, 1, argv);
Nan::Call(&callback, 1, argv);
}
info.GetReturnValue().SetUndefined();
}
Expand Down Expand Up @@ -619,7 +619,7 @@ NAN_METHOD(MbusMaster::ScanSecondary) {
Local<Value> argv[] = {
Nan::Error("Not connected to port")
};
Nan::Call(callback, 1, argv);
Nan::Call(&callback, 1, argv);
}
info.GetReturnValue().SetUndefined();
}
Expand Down Expand Up @@ -806,7 +806,7 @@ NAN_METHOD(MbusMaster::SetPrimaryId) {
Local<Value> argv[] = {
Nan::Error("Not connected to port")
};
Nan::Call(callback, 1, argv);
Nan::Call(&callback, 1, argv);
}
info.GetReturnValue().SetUndefined();
}
Expand Down

0 comments on commit 3dc8a79

Please sign in to comment.