mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-16 01:33:35 +00:00
fix pmem -> make backup_ram_t data members volatile (#1135)
* fix pmem -> make backup_ram_t data members volatile plus add calculated crc to the pmem debug screen * rename pmem debug menu to p.mem As this is how its refered to in the wiki and other screens * p.mem looked strange with capital P --------- Co-authored-by: Eisenberger Tamas <e.tamas@iwstudio.hu>
This commit is contained in:
@@ -269,7 +269,7 @@ class DebugPmemView : public View {
|
||||
DebugPmemView(NavigationView& nav);
|
||||
void focus() override;
|
||||
bool on_encoder(const EncoderEvent delta) override;
|
||||
std::string title() const override { return "Pmem"; }
|
||||
std::string title() const override { return "p.mem"; }
|
||||
|
||||
private:
|
||||
struct pmem_data {
|
||||
@@ -282,13 +282,14 @@ class DebugPmemView : public View {
|
||||
|
||||
int32_t page{0};
|
||||
|
||||
const pmem_data& data;
|
||||
volatile const pmem_data& data;
|
||||
|
||||
Text text_page{{16, 16, 208, 16}};
|
||||
|
||||
RegistersWidget registers_widget;
|
||||
|
||||
Text text_checksum{{16, 240, 208, 16}};
|
||||
Text text_checksum{{16, 232, 208, 16}};
|
||||
Text text_checksum2{{16, 248, 208, 16}};
|
||||
|
||||
Button button_ok{
|
||||
{240 / 3, 270, 240 / 3, 24},
|
||||
|
||||
Reference in New Issue
Block a user