Move register map into PROGMEM

hopefully the compiler understands...
pull/196/head
D.R.racer 2022-06-17 09:49:56 +02:00 committed by DRracer
parent 48dacd57bd
commit 7bc9217cd7
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#include <avr/pgmspace.h>
#include "registers.h" #include "registers.h"
#include "version.h" #include "version.h"
#include "application.h" #include "application.h"
@ -62,7 +64,7 @@ struct RegisterRec {
// @@TODO it is nice to see all the supported registers at one spot, // @@TODO it is nice to see all the supported registers at one spot,
// however it requires including all bunch of dependencies // however it requires including all bunch of dependencies
// which makes unit testing and separation of modules much harder. // which makes unit testing and separation of modules much harder.
static const RegisterRec registers[] = { static const RegisterRec registers[] PROGMEM = {
RegisterRec(false, &project_major), RegisterRec(false, &project_major),
RegisterRec(false, &project_minor), RegisterRec(false, &project_minor),