Skip to content

Commit c1711aa

Browse files
author
Me No Dev
committed
Merge remote-tracking branch 'esp8266/master'
2 parents f24ce1d + c844126 commit c1711aa

File tree

9 files changed

+37
-10
lines changed

9 files changed

+37
-10
lines changed

cores/esp8266/core_esp8266_phy.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
#include <stddef.h>
2525
#include <stdbool.h>
2626

27-
static uint8_t phy_init_data[128] =
27+
#include "c_types.h"
28+
29+
static const uint8_t ICACHE_FLASH_ATTR phy_init_data[128] =
2830
{
2931
[0] = 5, // Reserved, do not change
3032
[1] = 0, // Reserved, do not change
@@ -241,9 +243,12 @@ static uint8_t phy_init_data[128] =
241243
};
242244

243245
extern int __real_register_chipv6_phy(uint8_t* init_data);
244-
extern int __wrap_register_chipv6_phy(uint8_t* unused) {
245-
phy_init_data[107] = __get_adc_mode();
246-
return __real_register_chipv6_phy(phy_init_data);
246+
extern int __wrap_register_chipv6_phy(uint8_t* init_data) {
247+
if (init_data != NULL) {
248+
memcpy(init_data, phy_init_data, sizeof(phy_init_data));
249+
init_data[107] = __get_adc_mode();
250+
}
251+
return __real_register_chipv6_phy(init_data);
247252
}
248253

249254
extern int __get_rf_mode(void) __attribute__((weak));

cores/esp8266/spiffs_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static bool isSpiffsFilenameValid(const char* name) {
495495
if (name == nullptr)
496496
return false;
497497
auto len = strlen(name);
498-
return len > 0 && len <= SPIFFS_OBJ_NAME_LEN;
498+
return len > 0 && len < SPIFFS_OBJ_NAME_LEN;
499499
}
500500

501501
// these symbols should be defined in the linker script for each flash layout

doc/filesystem.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,14 @@ struct FSInfo {
169169
};
170170
```
171171
172-
This is the structure which may be filled using FS::info method. Field names
173-
are self-explanatory.
172+
This is the structure which may be filled using FS::info method.
173+
- `totalBytes` — total size of useful data on the file system
174+
- `usedBytes` — number of bytes used by files
175+
- `blockSize` — SPIFFS block size
176+
- `pageSize` — SPIFFS logical page size
177+
- `maxOpenFiles` — max number of files which may be open simultaneously
178+
- `maxPathLength` — max file name length (including one byte for zero termination)
179+
174180
175181
## Directory object (Dir)
176182

libraries/ESP8266WiFiMesh/examples/HelloMesh/HelloMesh.ino

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include <ESP8266WiFi.h>
22
#include <ESP8266WiFiMesh.h>
33

4+
unsigned int request_i = 0;
5+
unsigned int response_i = 0;
6+
47
/* Create the mesh node object */
58
ESP8266WiFiMesh mesh_node = ESP8266WiFiMesh(ESP.getChipId(), manageRequest);
69

@@ -17,7 +20,9 @@ String manageRequest(String request)
1720
Serial.println(request);
1821

1922
/* return a string to send back */
20-
return String("Hello world response.");
23+
char response[60];
24+
sprintf(response, "Hello world response #%d from Mesh_Node%d.", response_i++, ESP.getChipId());
25+
return response;
2126
}
2227

2328
void setup()
@@ -39,6 +44,8 @@ void loop()
3944
mesh_node.acceptRequest();
4045

4146
/* Scan for other nodes and send them a message */
42-
mesh_node.attemptScan("Hello world request.");
47+
char request[60];
48+
sprintf(request, "Hello world request #%d from Mesh_Node%d.", request_i++, ESP.getChipId());
49+
mesh_node.attemptScan(request);
4350
delay(1000);
4451
}

tools/sdk/changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
esp_iot_sdk_v1.5.0_15_12_15_p1 Release Note
2+
----------------------------------------
3+
Here is a patch based on ESP8266_NONOS_SDK_V1.5.0 solved a problem that calling espconn_abort may cause unexpected reset.
4+
5+
Sorry for the inconvenience.
6+
17
esp_iot_sdk_v1.5.0_15_11_27 Release Note
28
----------------------------------------
39
Resolved Issues (Bugs listed below apply to Bug Bounty Program):

tools/sdk/ld/eagle.rom.addr.v6.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,5 +343,8 @@ PROVIDE ( xthal_window_spill = 0x4000e324 );
343343
PROVIDE ( xthal_window_spill_nw = 0x4000e320 );
344344

345345
PROVIDE ( Te0 = 0x3fffccf0 );
346+
PROVIDE ( Td0 = 0x3fffd100 );
347+
PROVIDE ( Td4s = 0x3fffd500);
348+
PROVIDE ( rcons = 0x3fffd0f0);
346349
PROVIDE ( UartDev = 0x3fffde10 );
347350
PROVIDE ( flashchip = 0x3fffc714);

tools/sdk/lib/libaxtls.a

-130 Bytes
Binary file not shown.

tools/sdk/lib/liblwip.a

322 KB
Binary file not shown.

tools/sdk/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.0
1+
1.5.0_15_12_15_p1

0 commit comments

Comments
 (0)