add a firmware type to display
This commit is contained in:
parent
5fc6ceffac
commit
01662d43fa
|
@ -39,6 +39,8 @@ extra_scripts =
|
||||||
post:post.py
|
post:post.py
|
||||||
lib_ldf_mode = chain+
|
lib_ldf_mode = chain+
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
build_flags =
|
||||||
|
-D PIO_ENV_BUILD=$PIOENV
|
||||||
|
|
||||||
[env:m5stack-atom]
|
[env:m5stack-atom]
|
||||||
board = m5stack-atom
|
board = m5stack-atom
|
||||||
|
|
|
@ -87,7 +87,11 @@ const unsigned long HEAP_REPORT_TIME=2000; //set to 0 to disable heap reporting
|
||||||
#define MAX_NMEA2000_MESSAGE_SEASMART_SIZE 500
|
#define MAX_NMEA2000_MESSAGE_SEASMART_SIZE 500
|
||||||
#define MAX_NMEA0183_MESSAGE_SIZE 150 // For AIS
|
#define MAX_NMEA0183_MESSAGE_SIZE 150 // For AIS
|
||||||
|
|
||||||
|
#ifndef FIRMWARE_TYPE
|
||||||
|
#define FIRMWARE_TYPE PIO_ENV_BUILD
|
||||||
|
#endif
|
||||||
|
|
||||||
|
String firmwareType(GWSTRINGIFY(FIRMWARE_TYPE));
|
||||||
|
|
||||||
typedef std::map<String,String> StringMap;
|
typedef std::map<String,String> StringMap;
|
||||||
|
|
||||||
|
@ -474,6 +478,7 @@ protected:
|
||||||
char buffer[bsize];
|
char buffer[bsize];
|
||||||
toHex(base,buffer,bsize);
|
toHex(base,buffer,bsize);
|
||||||
status["salt"] = buffer;
|
status["salt"] = buffer;
|
||||||
|
status["fwtype"]= firmwareType;
|
||||||
//nmea0183Converter->toJson(status);
|
//nmea0183Converter->toJson(status);
|
||||||
countNMEA2KIn.toJson(status);
|
countNMEA2KIn.toJson(status);
|
||||||
countNMEA2KOut.toJson(status);
|
countNMEA2KOut.toJson(status);
|
||||||
|
|
|
@ -76,6 +76,10 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tabPage hidden" id="updatePage">
|
<div class="tabPage hidden" id="updatePage">
|
||||||
|
<div class="row">
|
||||||
|
<span class="label">firmware type</span>
|
||||||
|
<span class="value status-fwtype">---</span>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span class="label">currentVersion</span>
|
<span class="label">currentVersion</span>
|
||||||
<span class="value status-version">---</span>
|
<span class="value status-version">---</span>
|
||||||
|
|
Loading…
Reference in New Issue