This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 0cbd5e719 console: Fix console history placement
0cbd5e719 is described below

commit 0cbd5e7199be0b2af444395311a53438fc7aec12
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Feb 7 10:46:12 2024 +0100

    console: Fix console history placement
    
    Console history was meant to be stored in section pointed by bssnz_t
    This section is usually defined in bsp.h that was not included.
    Section was put in normal ram and console history was not able
    to persist across reboots as was the intentions.
    
    Now bsp.h is included and console history can be accessed after reboot
    if bsp defines section that is not cleared during startup.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 sys/console/full/history_ram/src/history_ram.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/console/full/history_ram/src/history_ram.c 
b/sys/console/full/history_ram/src/history_ram.c
index 41e2398a3..ac707b9dd 100644
--- a/sys/console/full/history_ram/src/history_ram.c
+++ b/sys/console/full/history_ram/src/history_ram.c
@@ -21,6 +21,7 @@
 #include <ctype.h>
 #include <os/mynewt.h>
 #include <console/history.h>
+#include <bsp/bsp.h>
 
 #ifndef bssnz_t
 /* Just in case bsp.h does not define it, in this case console history will

Reply via email to