mirror of
https://github.com/ole00/afterburner.git
synced 2024-06-16 06:29:36 +00:00
Remove unnecessary progmem strings when printing
This commit is contained in:
parent
3fc8e93940
commit
393c03993b
|
@ -2232,46 +2232,46 @@ static void printJedec()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Serial.print(F(" "));
|
Serial.print(' ');
|
||||||
printFormatedNumberHex2(n);
|
printFormatedNumberHex2(n);
|
||||||
}
|
}
|
||||||
Serial.println(F("*"));
|
Serial.println('*');
|
||||||
|
|
||||||
// UES in bit form
|
// UES in bit form
|
||||||
Serial.print(F("L"));
|
Serial.print('L');
|
||||||
printFormatedNumberDec4(k);
|
printFormatedNumberDec4(k);
|
||||||
Serial.print(F(" "));
|
Serial.print(' ');
|
||||||
|
|
||||||
for(j = 0; j < 8 * galinfo[gal].uesbytes; j++) {
|
for(j = 0; j < 8 * galinfo[gal].uesbytes; j++) {
|
||||||
if (getFuseBit(k++)) {
|
if (getFuseBit(k++)) {
|
||||||
Serial.print(F("1"));
|
Serial.print('1');
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("0"));
|
Serial.print('0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Serial.println(F("*"));
|
Serial.println('*');
|
||||||
|
|
||||||
// CFG bits
|
// CFG bits
|
||||||
if (k < galinfo[gal].fuses) {
|
if (k < galinfo[gal].fuses) {
|
||||||
Serial.print(F("L"));
|
Serial.print('L');
|
||||||
printFormatedNumberDec4(k);
|
printFormatedNumberDec4(k);
|
||||||
Serial.print(F(" "));
|
Serial.print(' ');
|
||||||
|
|
||||||
while( k < galinfo[gal].fuses) {
|
while( k < galinfo[gal].fuses) {
|
||||||
if (getFuseBit(k++)) {
|
if (getFuseBit(k++)) {
|
||||||
Serial.print(F("1"));
|
Serial.print('1');
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("0"));
|
Serial.print('0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//ATF16V8C
|
//ATF16V8C
|
||||||
if (apdFuse) {
|
if (apdFuse) {
|
||||||
Serial.print(F("1"));
|
Serial.print('1');
|
||||||
setFuseBit(k); // set for correct check-sum calculation
|
setFuseBit(k); // set for correct check-sum calculation
|
||||||
}
|
}
|
||||||
Serial.println(F("*"));
|
Serial.println('*');
|
||||||
} else if (apdFuse) { //ATF22V10C
|
} else if (apdFuse) { //ATF22V10C
|
||||||
Serial.print(F("L"));
|
Serial.print('L');
|
||||||
printFormatedNumberDec4(k);
|
printFormatedNumberDec4(k);
|
||||||
Serial.println(F(" 1*"));
|
Serial.println(F(" 1*"));
|
||||||
setFuseBit(k); // set for correct check-sum calculation
|
setFuseBit(k); // set for correct check-sum calculation
|
||||||
|
@ -2279,14 +2279,14 @@ static void printJedec()
|
||||||
|
|
||||||
Serial.print(F("N PES"));
|
Serial.print(F("N PES"));
|
||||||
for(i = 0; i < galinfo[gal].pesbytes; i++) {
|
for(i = 0; i < galinfo[gal].pesbytes; i++) {
|
||||||
Serial.print(F(" "));
|
Serial.print(' ');
|
||||||
printFormatedNumberHex2(pes[i]);
|
printFormatedNumberHex2(pes[i]);
|
||||||
}
|
}
|
||||||
Serial.println(F("*"));
|
Serial.println('*');
|
||||||
Serial.print(F("C"));
|
Serial.print('C');
|
||||||
printFormatedNumberHex4(checkSum(galinfo[gal].fuses + apdFuse));
|
printFormatedNumberHex4(checkSum(galinfo[gal].fuses + apdFuse));
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.println(F("*"));
|
Serial.println('*');
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper print function to save RAM space
|
// helper print function to save RAM space
|
||||||
|
|
Loading…
Reference in New Issue
Block a user