Commit 68459fdae8ed95554f6dd9dae1d916ce1c26e06c
1 parent
dedc5eee3f
Exists in
master
and in
2 other branches
3만 번지와 4만 번지를 서로 바꿔 표시하는 문제 수정
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/modbus-data-viewer/src/service-web/main.go
@@ -85,7 +85,7 @@ func mapControl(packet Packet) { | @@ -85,7 +85,7 @@ func mapControl(packet Packet) { | ||
85 | 85 | ||
86 | controlTable = "" | 86 | controlTable = "" |
87 | for i, v := range packet { | 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 | templateMap["Table_Control"] = template.HTML(controlTable) | 91 | templateMap["Table_Control"] = template.HTML(controlTable) |
@@ -97,7 +97,7 @@ func mapState(packet Packet) { | @@ -97,7 +97,7 @@ func mapState(packet Packet) { | ||
97 | 97 | ||
98 | stateTable = "" | 98 | stateTable = "" |
99 | for i, v := range packet { | 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 | templateMap["Table_State"] = template.HTML(stateTable) | 103 | templateMap["Table_State"] = template.HTML(stateTable) |