diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index b33bc07..e5dd116 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -63,7 +63,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [16.x, 18.x, 20.x, 22.x] + node-version: [16.x, 18.x, 20.x] os: [ubuntu-latest, windows-2019, windows-latest, macos-latest] steps: diff --git a/src/mbus-master.cc b/src/mbus-master.cc index a7f4e41..0c3d12c 100644 --- a/src/mbus-master.cc +++ b/src/mbus-master.cc @@ -255,7 +255,6 @@ class RecieveWorker : public Nan::AsyncWorker { char error[100]; int address; int secondary_selected = 0; - int request_frame_res; memset((void *)&reply, 0, sizeof(mbus_frame)); @@ -376,7 +375,7 @@ class RecieveWorker : public Nan::AsyncWorker { Nan::New(data).ToLocalChecked() }; free(data); - callback->Call(2, argv); + callback->Call(2, argv, async_resource); }; void HandleErrorCallback () { @@ -388,7 +387,7 @@ class RecieveWorker : public Nan::AsyncWorker { Nan::Error(ErrorMessage()) }; - callback->Call(1, argv); + callback->Call(1, argv, async_resource); } private: char *data; @@ -586,7 +585,7 @@ class ScanSecondaryWorker : public Nan::AsyncWorker { Nan::New(data).ToLocalChecked() }; free(data); - callback->Call(2, argv); + callback->Call(2, argv, async_resource); }; void HandleErrorCallback () { @@ -597,7 +596,7 @@ class ScanSecondaryWorker : public Nan::AsyncWorker { Local argv[] = { Nan::Error(ErrorMessage()) }; - callback->Call(1, argv); + callback->Call(1, argv, async_resource); } private: char *data; @@ -769,7 +768,7 @@ class SetPrimaryWorker : public Nan::AsyncWorker { Local argv[] = { Nan::Null() }; - callback->Call(1, argv); + callback->Call(1, argv, async_resource); }; void HandleErrorCallback () { @@ -781,7 +780,7 @@ class SetPrimaryWorker : public Nan::AsyncWorker { Nan::Error(ErrorMessage()) }; - callback->Call(1, argv); + callback->Call(1, argv, async_resource); } private: char *old_addr_str;