Skip to content

Commit

Permalink
Merge pull request #300 from Bettman66/master
Browse files Browse the repository at this point in the history
buf moved from local to global variable
  • Loading branch information
Apollon77 authored Feb 17, 2024
2 parents 4e88345 + 22d9099 commit 1fb9a82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let iconvFrom;
let iconvTo;
let iconvToL;
const encoding = 'iso-8859-1';
let buf;

/*try {
const Iconv = require('iconv').Iconv;
Expand Down Expand Up @@ -255,7 +256,7 @@ function send() {
if (!s7client) {
return next('s7client not exists');
}
let buf;
buf = null;

if (type === 'BOOL') {
if (val === true || val === 1 || val === 'true' || val === '1') {
Expand Down

0 comments on commit 1fb9a82

Please sign in to comment.