Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 committed Mar 10, 2024
1 parent 9c4e7af commit a2221a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_snap7_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ S7Server::S7Server(const Napi::CallbackInfo &info) : Napi::ObjectWrap<S7Server>(
tsfn.Unref(env);
tsfnrw.Unref(env);

snap7Server->SetEventsCallback(static_cast<pfn_SrvCallBack>(&EventCallBack), &tsfn);
snap7Server->SetEventsCallback(reinterpret_cast<pfn_SrvCallBack>(&EventCallBack), &tsfn);
}

S7Server::~S7Server() {
Expand Down Expand Up @@ -502,7 +502,7 @@ Napi::Value S7Server::SetResourceless(const Napi::CallbackInfo& info) {

int ret;
if (resourceless) {
ret = snap7Server->SetRWAreaCallback(static_cast<pfn_RWAreaCallBack>(&RWAreaCallBack), tsfnrw);
ret = snap7Server->SetRWAreaCallback(reinterpret_cast<pfn_RWAreaCallBack>(&RWAreaCallBack), tsfnrw);
} else {
ret = snap7Server->SetRWAreaCallback(NULL, NULL);
}
Expand Down

0 comments on commit a2221a7

Please sign in to comment.