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 8e4d950 commit c5ed741
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mbus-master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ class RecieveWorker : public Nan::AsyncWorker {
// here, so everything we need for input and output
// should go on `this`.
void Execute () {
uv_rwlock_wrlock(lock);

char error[100];
mbus_frame reply;
int address;
int secondary_selected = 0;

uv_rwlock_wrlock(lock);

if (!isConnected) {
sprintf(error, "Not connected to port");
SetErrorMessage(error);
Expand Down Expand Up @@ -528,12 +528,12 @@ class ScanSecondaryWorker : public Nan::AsyncWorker {
// here, so everything we need for input and output
// should go on `this`.
void Execute () {
uv_rwlock_wrlock(lock);

char error[100];
mbus_frame *frame = NULL, reply;
char mask[17];

uv_rwlock_wrlock(lock);

if (!isConnected) {
sprintf(error, "Not connected to port");
SetErrorMessage(error);
Expand Down Expand Up @@ -638,13 +638,13 @@ class SetPrimaryWorker : public Nan::AsyncWorker {
// here, so everything we need for input and output
// should go on `this`.
void Execute () {
uv_rwlock_wrlock(lock);

char error[150];
mbus_frame reply;
int old_address;
int ret;

uv_rwlock_wrlock(lock);

if (!isConnected) {
sprintf(error, "Not connected to port");
SetErrorMessage(error);
Expand Down

0 comments on commit c5ed741

Please sign in to comment.