Skip to content

Commit

Permalink
Allow deck with corrupted (blank) memory in DEBUG build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Jan 19, 2016
1 parent a691387 commit da32709
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deck/core/deck_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,15 @@ static void enumerateDecks(void)
usedPeriph |= deckInfos[i].driver->usedPeriph;
usedGpio |= deckInfos[i].driver->usedGpio;
} else {
#ifdef DEBUG
DEBUG_PRINT("Deck %i has corrupted OW memory. "
"Ignoring the deck in DEBUG mode.\n", i);
deckInfos[i].driver = &dummyDriver;
#else
DEBUG_PRINT("Deck %i has corrupted OW memory. "
"No driver will be initialized!\n", i);
noError = false;
#endif
}
}
else
Expand Down

0 comments on commit da32709

Please sign in to comment.