mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge remote-tracking branch 'origin/main' into feat/session-timeout-config
# Conflicts: # httpd/httpd.c
This commit is contained in:
commit
6be1871bb4
5 files changed
+10
-2
No files matched your search
@@ -3,6 +3,7 @@ name: Build firmware
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['**']
|
branches: ['**']
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
+1
-1
@@ -344,7 +344,7 @@ __xdata uint8_t *scan_header(__xdata uint8_t * __xdata p)
|
|||||||
|
|
||||||
read_reg_timer(&now);
|
read_reg_timer(&now);
|
||||||
|
|
||||||
if (session) {
|
if (session && session_id[0]) {
|
||||||
if (now - last_session_use > session_timeout) {
|
if (now - last_session_use > session_timeout) {
|
||||||
dbg_string("Session expired\n");
|
dbg_string("Session expired\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1182,6 +1182,7 @@ __code const struct machine machine = {
|
|||||||
0
|
0
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
};
|
||||||
#elif defined MACHINE_POE_2G080110GS
|
#elif defined MACHINE_POE_2G080110GS
|
||||||
__code const struct machine machine = {
|
__code const struct machine machine = {
|
||||||
.machine_name = "MokerLink POE-2G080110GS",
|
.machine_name = "MokerLink POE-2G080110GS",
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
// #define MACHINE_SWTG024AS_V2_0
|
// #define MACHINE_SWTG024AS_V2_0
|
||||||
// #define MACHINE_FG_4GT_2SX_V2_0
|
// #define MACHINE_FG_4GT_2SX_V2_0
|
||||||
// #define MACHINE_FG_8GT_1SX
|
// #define MACHINE_FG_8GT_1SX
|
||||||
|
// #define MACHINE_LIANGUO_HYWS_SGT0108S
|
||||||
// #define MACHINE_POE_2G080110GS
|
// #define MACHINE_POE_2G080110GS
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
+6
-1
@@ -221,7 +221,9 @@ void flash_read_jedecid(void)
|
|||||||
*/
|
*/
|
||||||
void flash_read_bulk(__xdata uint8_t *dst)
|
void flash_read_bulk(__xdata uint8_t *dst)
|
||||||
{
|
{
|
||||||
short status;
|
if (!flash_region.len)
|
||||||
|
return;
|
||||||
|
|
||||||
flash_configure_sio();
|
flash_configure_sio();
|
||||||
while (flash_read_status() & STATUS_REG_BUSY_MASK);
|
while (flash_read_status() & STATUS_REG_BUSY_MASK);
|
||||||
flash_configure_mmio();
|
flash_configure_mmio();
|
||||||
@@ -258,6 +260,9 @@ void flash_read_bulk(__xdata uint8_t *dst)
|
|||||||
|
|
||||||
void flash_read_security(void)
|
void flash_read_security(void)
|
||||||
{
|
{
|
||||||
|
if (!flash_region.len)
|
||||||
|
return;
|
||||||
|
|
||||||
flash_configure_sio();
|
flash_configure_sio();
|
||||||
|
|
||||||
while (flash_read_status() & STATUS_REG_BUSY_MASK);
|
while (flash_read_status() & STATUS_REG_BUSY_MASK);
|
||||||
|
|||||||
Reference in new issue
Block a user