sforkowany z mirror/meshtastic-firmware
Fixed switching to uint32 from 16 for airtime in json report
rodzic
b963216764
commit
4ec8986934
|
@ -1110,13 +1110,13 @@ void handleReport(HTTPRequest *req, HTTPResponse *res)
|
||||||
|
|
||||||
res->println("\"airtime\": {");
|
res->println("\"airtime\": {");
|
||||||
|
|
||||||
uint16_t *logArray;
|
uint32_t *logArray;
|
||||||
|
|
||||||
res->print("\"tx_log\": [");
|
res->print("\"tx_log\": [");
|
||||||
|
|
||||||
logArray = airtimeReport(TX_LOG);
|
logArray = airtimeReport(TX_LOG);
|
||||||
for (int i = 0; i < getPeriodsToLog(); i++) {
|
for (int i = 0; i < getPeriodsToLog(); i++) {
|
||||||
uint16_t tmp;
|
uint32_t tmp;
|
||||||
tmp = *(logArray + i);
|
tmp = *(logArray + i);
|
||||||
res->printf("%d", tmp);
|
res->printf("%d", tmp);
|
||||||
if (i != getPeriodsToLog() - 1) {
|
if (i != getPeriodsToLog() - 1) {
|
||||||
|
@ -1129,7 +1129,7 @@ void handleReport(HTTPRequest *req, HTTPResponse *res)
|
||||||
|
|
||||||
logArray = airtimeReport(RX_LOG);
|
logArray = airtimeReport(RX_LOG);
|
||||||
for (int i = 0; i < getPeriodsToLog(); i++) {
|
for (int i = 0; i < getPeriodsToLog(); i++) {
|
||||||
uint16_t tmp;
|
uint32_t tmp;
|
||||||
tmp = *(logArray + i);
|
tmp = *(logArray + i);
|
||||||
res->printf("%d", tmp);
|
res->printf("%d", tmp);
|
||||||
if (i != getPeriodsToLog() - 1) {
|
if (i != getPeriodsToLog() - 1) {
|
||||||
|
@ -1142,7 +1142,7 @@ void handleReport(HTTPRequest *req, HTTPResponse *res)
|
||||||
|
|
||||||
logArray = airtimeReport(RX_ALL_LOG);
|
logArray = airtimeReport(RX_ALL_LOG);
|
||||||
for (int i = 0; i < getPeriodsToLog(); i++) {
|
for (int i = 0; i < getPeriodsToLog(); i++) {
|
||||||
uint16_t tmp;
|
uint32_t tmp;
|
||||||
tmp = *(logArray + i);
|
tmp = *(logArray + i);
|
||||||
res->printf("%d", tmp);
|
res->printf("%d", tmp);
|
||||||
if (i != getPeriodsToLog() - 1) {
|
if (i != getPeriodsToLog() - 1) {
|
||||||
|
|
Ładowanie…
Reference in New Issue