พัทธนันทน์ ศรีสุขนันทน์ / Mbed 2 deprecated TAIST_modbus

Dependencies:   mbed

Fork of TAIST_modbus by Supachai Vorapojpisut

Revision:
6:b6d3e73ad56f
Parent:
5:8998772b4971
Child:
7:cba97341e790
--- a/main.cpp	Sun Mar 18 07:27:10 2018 +0000
+++ b/main.cpp	Mon Mar 19 07:02:47 2018 +0000
@@ -26,8 +26,8 @@
         offset = (frame[2] << 8) | (frame[3]);
         count = (frame[4] << 8) | (frame[5]);
         
-        modbus_update(0x0000, skipCount);
-        modbus_update(0x0001, widthCount);
+        modbus_update(0x0000, widthCount);
+        modbus_update(0x0001, skipCount);
         
         reg_map = modbus_check(offset, count);
         modbus_response(reg_map);