sketch: remember the gal type between arduino resets

This commit is contained in:
ole00 2022-03-30 22:14:32 +01:00
parent b20500912a
commit 772181f20b

View File

@ -36,7 +36,7 @@
*/ */
#define VERSION "0.3" #define VERSION "0.4"
//#define DEBUG_PES //#define DEBUG_PES
//#define DEBUG_VERIFY //#define DEBUG_VERIFY
@ -208,7 +208,8 @@ galinfo[]=
#define MAXFUSES 737 #define MAXFUSES 737
GALTYPE gal; //the gal device index pointing to galinfo GALTYPE gal __attribute__ ((section (".noinit"))); //the gal device index pointing to galinfo, value is preserved between resets
static short security = 0, erasetime = 100, progtime = 100, vpp = 0; static short security = 0, erasetime = 100, progtime = 100, vpp = 0;
char echoEnabled; char echoEnabled;
@ -255,7 +256,6 @@ void setup() {
Serial.begin(38400); Serial.begin(38400);
isUploading = 0; isUploading = 0;
endOfLine = 0; endOfLine = 0;
gal = ATF16V8B;
echoEnabled = 0; echoEnabled = 0;
mapUploaded = 0; mapUploaded = 0;
typeCheck = 1; //do type check typeCheck = 1; //do type check