This commit is contained in:
Matthew Kennedy 2022-08-10 21:54:42 -07:00
parent 7e986470a4
commit 900a8565e4
1 changed files with 3 additions and 5 deletions

View File

@ -419,18 +419,16 @@ bool Pt2001Base::restart() {
// Start with everything off
shutdown();
deselect();
chThdSleepMilliseconds(10);
if (getVbatt() < 8) {
// efiPrintf("GDI not Restarting until we see VBatt");
return false;
}
//delay/wait? .. possibly only 30us for each needed, per datasheet
setResetB(false);
chThdSleepMilliseconds(10);
// Wait for chip to reset, then release reset and wait again
chThdSleepMilliseconds(1);
setResetB(true);
chThdSleepMilliseconds(10);
chThdSleepMilliseconds(1);
flag0before = readFlag0();