Skip to content

Commit 0142605

Browse files
committed
WEB: Move extended fields run time, eth data and rtu data to system info
Signed-off-by: Samuel Cabrero <[email protected]>
1 parent 44ff1ba commit 0142605

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

arduino-modbus-rtu-tcp-gateway/05-pages.ino

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,6 @@ void contentInfo(ChunkedPrint &chunked) {
241241
tagLabelDiv(chunked, F("IP Address"));
242242
chunked.print(IPAddress(Ethernet.localIP()));
243243
tagDivClose(chunked);
244-
}
245-
246-
/**************************************************************************/
247-
/*!
248-
@brief P1P2 Status
249-
250-
@param chunked Chunked buffer
251-
*/
252-
/**************************************************************************/
253-
void contentStatus(ChunkedPrint &chunked) {
254244

255245
#ifdef ENABLE_EXTENDED_WEBUI
256246
tagLabelDiv(chunked, F("Run Time"));
@@ -262,8 +252,17 @@ void contentStatus(ChunkedPrint &chunked) {
262252
tagLabelDiv(chunked, F("Ethernet Data"));
263253
tagSpan(chunked, JSON_ETH_DATA);
264254
tagDivClose(chunked);
265-
#endif /* ENABLE_EXTENDED_WEBUI */
255+
#endif
256+
}
257+
258+
/**************************************************************************/
259+
/*!
260+
@brief P1P2 Status
266261
262+
@param chunked Chunked buffer
263+
*/
264+
/**************************************************************************/
265+
void contentStatus(ChunkedPrint &chunked) {
267266
tagLabelDiv(chunked, F("Modbus RTU Request"));
268267
for (byte i = 0; i <= POST_REQ_LAST - POST_REQ; i++) {
269268
bool required = false;

0 commit comments

Comments
 (0)