mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 14:12:31 -04: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:
parent
b87d26f271
commit
b9de1918b4
3 changed files with 23 additions and 8 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue