From 987fdc1b745aa601cc1e35255d8c522b5c35f209 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 28 Jul 2017 17:49:05 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=86=A0=EC=BD=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EB=8C=80=EC=9D=91(170627)=20=20-=2040035?= =?UTF-8?q?=EC=97=90=20INV=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c | 1 + app/app-prime-modbus/include/all_share.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c b/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c index 296fe27..929029f 100644 --- a/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c +++ b/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c @@ -315,6 +315,7 @@ static void onoff_bit( command_t *pcmd){ case TG_UNP : addr = 0x22; bit= 0x0200; break; case TG_HDM : addr = 0x22; bit= 0x0400; break; case TG_SGNV : addr = 0x22; bit= 0x0800; break; + case TG_INV : addr = 0x22; bit= 0x1000; break; } switch( pcmd->target){ diff --git a/app/app-prime-modbus/include/all_share.h b/app/app-prime-modbus/include/all_share.h index bb4aca5..04ada15 100644 --- a/app/app-prime-modbus/include/all_share.h +++ b/app/app-prime-modbus/include/all_share.h @@ -89,7 +89,8 @@ enum target_onoff_t { TG_SSP, TG_UNP, TG_HDM, - TG_SGNV + TG_SGNV, + TG_INV }; enum { -- 2.1.4