Seems to address startup hang issue?

This commit is contained in:
Phillip Burgess 2023-02-14 13:53:26 -08:00 committed by ladyada
parent 382363a876
commit eb000eabdb

View file

@ -27,9 +27,8 @@ static PicoDVI *dviptr = NULL; // For C access to active C++ object
// Runs on core 1 on startup // Runs on core 1 on startup
void setup1(void) { void setup1(void) {
delay(1); // Required, perhaps core related while (dviptr == NULL) // Wait for PicoDVI::begin() to start on core 0
while (dviptr == NULL) yield();
; // Wait for PicoDVI::begin() to start on core 0
dviptr->_setup(); dviptr->_setup();
} }