FreeCalypso > hg > fc-magnetite
diff src/aci2/aci/aci_pei.c @ 653:094152d97ce7
Luna bring-up: workaround for slow LCD init sequence
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 07 May 2020 20:08:01 +0000 |
parents | ba63f14d1e84 |
children |
line wrap: on
line diff
--- a/src/aci2/aci/aci_pei.c Thu May 07 08:06:31 2020 +0000 +++ b/src/aci2/aci/aci_pei.c Thu May 07 20:08:01 2020 +0000 @@ -152,6 +152,10 @@ extern const char firmware_version_str[]; +#if (MMI != 0) +extern int r2d_is_running; +#endif + /*==== DEFINE =====================================================*/ @@ -1278,6 +1282,12 @@ return PEI_ERROR; } +/* FreeCalypso addition to fix R2D start race condition */ +#if (MMI != 0) + if (!r2d_is_running) + return PEI_ERROR; +#endif + #ifdef DTI #ifdef _SIMULATION_ /*