Skip to content

Commit

Permalink
console: Fix console history placement
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kasjer committed Feb 7, 2024
1 parent 418287b commit 0cbd5e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/console/full/history_ram/src/history_ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cbd5e7

Please sign in to comment.