Skip to content

Commit b6dbf13

Browse files
committed
Minor bugfix
1 parent 174b071 commit b6dbf13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/MI/ModuleInterfaceHttpTransfer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
struct MILastScanTimes {
2222
uint32_t times[NUM_SCAN_INTERVALS];
2323
MILastScanTimes() {
24-
memset(times, NUM_SCAN_INTERVALS*sizeof(uint32_t), 0);
24+
memset(times, 0, NUM_SCAN_INTERVALS*sizeof(uint32_t));
2525
}
2626
};
2727

2828
void write_http_settings_request(const char *module_prefix, Client &client) {
2929
String request = F("GET /get_settings.php?prefix=");
3030
request += module_prefix;
31-
client.print((request + "\r\n\r\n").c_str());
31+
request += "\r\n\r\n";
32+
client.print(request);
3233
// NOTE: On ESP8266 a client.flush() seems to close the connection, so avoid it
3334
}
3435

0 commit comments

Comments
 (0)