summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/net
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-09-04 20:51:36 +0200
committerUros Majstorovic <majstor@majstor.org>2024-09-04 20:51:36 +0200
commit16d2bc9cc097da10dcadd2fb7425e20da4834a3a (patch)
tree5f652d595dd5f2180468b1a639e9c1b743505f79 /fw/fe310/eos/net
parenteef5b5504018cfef386dab7e088c12b619039413 (diff)
power driver fix
Diffstat (limited to 'fw/fe310/eos/net')
-rw-r--r--fw/fe310/eos/net/pwr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fw/fe310/eos/net/pwr.c b/fw/fe310/eos/net/pwr.c
index 89f1817..308a05a 100644
--- a/fw/fe310/eos/net/pwr.c
+++ b/fw/fe310/eos/net/pwr.c
@@ -8,8 +8,10 @@
#include "soc/pwr.h"
#include "soc/spi.h"
#include "dev/spi.h"
+#include "dev/net.h"
#include "dev/lcd.h"
#include "eve/eve.h"
+#include "dev/flash.h"
#include "pwr.h"
@@ -51,7 +53,11 @@ static void pwr_handle_btn(unsigned char type, unsigned char *buffer, uint16_t l
eos_spi_deselect();
}
- rv = eos_pwr_sleep();
+ rv = eos_net_sleep(1000);
+
+ eos_flash_norm();
+
+ eos_pwr_sleep();
}
void eos_pwr_net_init(void) {