We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 174b071 commit b6dbf13Copy full SHA for b6dbf13
src/MI/ModuleInterfaceHttpTransfer.h
@@ -21,14 +21,15 @@
21
struct MILastScanTimes {
22
uint32_t times[NUM_SCAN_INTERVALS];
23
MILastScanTimes() {
24
- memset(times, NUM_SCAN_INTERVALS*sizeof(uint32_t), 0);
+ memset(times, 0, NUM_SCAN_INTERVALS*sizeof(uint32_t));
25
}
26
};
27
28
void write_http_settings_request(const char *module_prefix, Client &client) {
29
String request = F("GET /get_settings.php?prefix=");
30
request += module_prefix;
31
- client.print((request + "\r\n\r\n").c_str());
+ request += "\r\n\r\n";
32
+ client.print(request);
33
// NOTE: On ESP8266 a client.flush() seems to close the connection, so avoid it
34
35
0 commit comments