node-red-contrib-modbus-rtu 1.0.24 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/modbus_rtu.js +2 -1
  2. package/package.json +1 -1
package/modbus_rtu.js CHANGED
@@ -48,7 +48,8 @@ module.exports = function (RED) {
48
48
  } else if (fn == -2) { //CHECK CRC
49
49
  data = msg.payload;
50
50
  msg.payload = add_crc(data, out_crc);
51
- if(out_crc==0){
51
+ msg.crc = out_crc.crc;
52
+ if(out_crc.crc == 0){
52
53
  node.status({ fill: "green", shape: "dot", text: "CRC == 0 : OK" + out_crc.crc.toString(16)});
53
54
  node.send(msg);
54
55
  }else{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-modbus-rtu",
3
- "version": "1.0.24",
3
+ "version": "1.1.26",
4
4
  "description": "Node-RED function build content modbus_rtu - Code by DoDuyCop",
5
5
  "author": "duycop",
6
6
  "license": "MIT",