Procházet zdrojové kódy

Fix 32 bit shift on 8 bit AVR

main
PaulStoffregen před 9 roky
rodič
revize
a5d84ba5dc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp Zobrazit soubor

@@ -75,7 +75,7 @@ static uint32_t check_signature(void)
if (sig[0] == 0xFA96554C) return sig[1];
if (sig[0] == 0xFFFFFFFF) {
sig[0] = 0xFA96554C;
sig[1] = ((DEFAULT_STRINGS_SIZE/4) << 16) | DEFAULT_MAXFILES;
sig[1] = ((uint32_t)(DEFAULT_STRINGS_SIZE/4) << 16) | DEFAULT_MAXFILES;
SerialFlash.write(0, sig, 8);
while (!SerialFlash.ready()) ; // TODO: timeout
SerialFlash.read(0, sig, 8);

Načítá se…
Zrušit
Uložit