Commit 987fdc1b745aa601cc1e35255d8c522b5c35f209

Authored by 김태훈
1 parent 62e6723642
Exists in master and in 2 other branches fhd, fhd-demo

프로토콜 변경 대응(170627)

- 40035에 INV 추가
app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c
@@ -315,6 +315,7 @@ static void onoff_bit( command_t *pcmd){ @@ -315,6 +315,7 @@ static void onoff_bit( command_t *pcmd){
315 case TG_UNP : addr = 0x22; bit= 0x0200; break; 315 case TG_UNP : addr = 0x22; bit= 0x0200; break;
316 case TG_HDM : addr = 0x22; bit= 0x0400; break; 316 case TG_HDM : addr = 0x22; bit= 0x0400; break;
317 case TG_SGNV : addr = 0x22; bit= 0x0800; break; 317 case TG_SGNV : addr = 0x22; bit= 0x0800; break;
  318 + case TG_INV : addr = 0x22; bit= 0x1000; break;
318 } 319 }
319 320
320 switch( pcmd->target){ 321 switch( pcmd->target){
app/app-prime-modbus/include/all_share.h
@@ -89,7 +89,8 @@ enum target_onoff_t { @@ -89,7 +89,8 @@ enum target_onoff_t {
89 TG_SSP, 89 TG_SSP,
90 TG_UNP, 90 TG_UNP,
91 TG_HDM, 91 TG_HDM,
92 - TG_SGNV 92 + TG_SGNV,
  93 + TG_INV
93 }; 94 };
94 95
95 enum { 96 enum {