Skip to content

Commit

Permalink
0.8.78
Browse files Browse the repository at this point in the history
* merge PR: Add hint to INV_RESET_MIDNIGHT resp. INV_PAUSE_DURING_NIGHT #1418
* merge PR: simplify rxOffset logic #1417
* code quality improvments
  • Loading branch information
lumapu committed Feb 11, 2024
1 parent 018e3e7 commit c290273
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 28 deletions.
3 changes: 3 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* finalized API token access #1415
* possible fix of MqTT fix "total values are sent to often" #1421
* removed `switchCycle` from `hmsRadio.h` #1412
* merge PR: Add hint to INV_RESET_MIDNIGHT resp. INV_PAUSE_DURING_NIGHT #1418
* merge PR: simplify rxOffset logic #1417
* code quality improvments

## 0.8.77 - 2024-02-08
* merge PR: BugFix: ACK #1414
Expand Down
2 changes: 1 addition & 1 deletion src/eth/ahoyeth.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ahoyeth {
#if defined(CONFIG_IDF_TARGET_ESP32S3)
EthSpi mEthSpi;
#endif
settings_t *mConfig = NULL;
settings_t *mConfig = nullptr;

uint32_t *mUtcTimestamp;
AsyncUDP mUdp; // for time server
Expand Down
6 changes: 2 additions & 4 deletions src/utils/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ namespace ah {

String getTimeStrMs(uint64_t t) {
char str[13];
uint16_t m;
if(0 == t)
sprintf(str, "n/a");
else {
m = t % 1000;
uint16_t m = t % 1000;
t = t / 1000;
sprintf(str, "%02d:%02d:%02d.%03d", hour(t), minute(t), second(t), m);
}
Expand All @@ -86,14 +85,13 @@ namespace ah {
uint64_t Serial2u64(const char *val) {
char tmp[3];
uint64_t ret = 0ULL;
uint64_t u64;
memset(tmp, 0, 3);
for(uint8_t i = 0; i < 6; i++) {
tmp[0] = val[i*2];
tmp[1] = val[i*2 + 1];
if((tmp[0] == '\0') || (tmp[1] == '\0'))
break;
u64 = strtol(tmp, NULL, 16);
uint64_t u64 = strtol(tmp, NULL, 16);
ret |= (u64 << ((5-i) << 3));
}
return ret;
Expand Down
3 changes: 1 addition & 2 deletions src/utils/syslog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ void DbgSyslog::syslogCb (String msg)
// Send mSyslogBuffer in chunks because mSyslogBuffer is larger than syslog packet size
int packetStart = 0;
int packetSize = 122; // syslog payload depends also on hostname and app
char saveChar;
if (isEolFound) {
mSyslogBuffer[mSyslogBufFill-2]=0; // skip \r\n
}
while(packetStart < mSyslogBufFill) {
saveChar = mSyslogBuffer[packetStart+packetSize];
char saveChar = mSyslogBuffer[packetStart+packetSize];
mSyslogBuffer[packetStart+packetSize] = 0;
log(mConfig->sys.deviceName,SYSLOG_FACILITY, mSyslogSeverity, &mSyslogBuffer[packetStart]);
mSyslogBuffer[packetStart+packetSize] = saveChar;
Expand Down
6 changes: 3 additions & 3 deletions src/web/html/colorBright.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
--fg: #000;
--fg2: #fff;

--info: #0000dd;
--warn: #ff7700;
--success: #009900;
--info: #00d;
--warn: #f70;
--success: #090;

--input-bg: #eee;
--table-border: #ccc;
Expand Down
16 changes: 8 additions & 8 deletions src/web/html/colorDark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
--fg2: #fff;

--info: #0072c8;
--warn: #ffaa00;
--success: #00bb00;
--warn: #fa0;
--success: #0b0;

--input-bg: #333;
--table-border: #333;
Expand All @@ -20,14 +20,14 @@

--invalid-bg: #400;

--total-head-title: #555511;
--total-bg: #666622;
--iv-head-title: #115511;
--iv-head-bg: #226622;
--total-head-title: #551;
--total-bg: #662;
--iv-head-title: #151;
--iv-head-bg: #262;
--iv-dis-title: #333;
--iv-dis: #444;
--ch-head-title: #112255;
--ch-head-bg: #223366;
--ch-head-title: #125;
--ch-head-bg: #236;
--ts-head: #333;
--ts-bg: #555;
}
21 changes: 11 additions & 10 deletions src/web/html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ span, li, h3, label, fieldset {
color: var(--fg);
}

fieldset, input[type=submit], .btn {
fieldset, input[type="submit"], .btn {
border-radius: 4px;
}

input[type=file] {
input[type="file"] {
width: 100%;
}

Expand All @@ -33,7 +33,7 @@ textarea {
color: var(--fg2);
}

svg rect {fill: #0000AA;}
svg rect {fill: #00A;}
svg.chart {
background: #f2f2f2;
border: 2px solid gray;
Expand All @@ -44,6 +44,7 @@ div.chartDivContainer {
padding: 1px;
margin: 1px;
}

div.chartdivContainer span {
color: var(--fg2);
}
Expand Down Expand Up @@ -95,7 +96,7 @@ svg.icon {
vertical-align: middle;
display: inline-block;
margin-top:-4x;
padding: 5px 7px 5px 0px;
padding: 5px 7px 5px 0;
}

.icon-info {
Expand Down Expand Up @@ -141,7 +142,7 @@ svg.icon {
span.seperator {
width: 100%;
height: 1px;
margin: 5px 0px 5px;
margin: 5px 0 5px;
background-color: #494949;
display: block;
}
Expand Down Expand Up @@ -391,7 +392,7 @@ th {

#footer .left {
color: #bbb;
margin: 23px 0px 0px 25px;
margin: 23px 0 0 25px;
}

#footer ul {
Expand Down Expand Up @@ -525,7 +526,7 @@ input, select {
font-size: 13pt;
}

input[type=text], input[type=password], select, input[type=number] {
input[type="text"], input[type="password"], select, input[type="number"] {
width: 100%;
box-sizing: border-box;
border: 1px solid #ccc;
Expand All @@ -551,7 +552,7 @@ input.btnDel {
input.btn {
background-color: var(--primary);
color: #fff;
border: 0px;
border: 0;
padding: 7px 20px 7px 20px;
margin-bottom: 10px;
text-transform: uppercase;
Expand All @@ -572,7 +573,7 @@ label {
display: inline-block;
font-size: 12pt;
padding-right: 10px;
margin: 10px 0px 0px 15px;
margin: 10px 0 0 15px;
vertical-align: top;
}

Expand Down Expand Up @@ -601,7 +602,7 @@ div.ModPwr, div.ModName, div.YieldCor {
div.hr {
height: 1px;
border-top: 1px solid #ccc;
margin: 10px 0px 10px;
margin: 10px 0 10px;
}

#note {
Expand Down

0 comments on commit c290273

Please sign in to comment.