Commit 68459fdae8ed95554f6dd9dae1d916ce1c26e06c

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

3만 번지와 4만 번지를 서로 바꿔 표시하는 문제 수정

app/modbus-data-viewer/src/service-web/main.go
... ... @@ -85,7 +85,7 @@ func mapControl(packet Packet) {
85 85  
86 86 controlTable = ""
87 87 for i, v := range packet {
88   - controlTable += fmt.Sprintf("<tr><td>%v</td><td>0x%04X</td><td>0x%04X</td><td>%d</td></tr>\n", 30001+i, i, v, v)
  88 + controlTable += fmt.Sprintf("<tr><td>%v</td><td>0x%04X</td><td>0x%04X</td><td>%d</td></tr>\n", 40001+i, i, v, v)
89 89 }
90 90  
91 91 templateMap["Table_Control"] = template.HTML(controlTable)
... ... @@ -97,7 +97,7 @@ func mapState(packet Packet) {
97 97  
98 98 stateTable = ""
99 99 for i, v := range packet {
100   - stateTable += fmt.Sprintf("<tr><td>%v</td><td>0x%04X</td><td>0x%04X</td><td>%d</td></tr>\n", 40001+i, i, v, v)
  100 + stateTable += fmt.Sprintf("<tr><td>%v</td><td>0x%04X</td><td>0x%04X</td><td>%d</td></tr>\n", 30001+i, i, v, v)
101 101 }
102 102  
103 103 templateMap["Table_State"] = template.HTML(stateTable)
... ...