mirror of
https://github.com/GaryOderNichts/DRXUtil.git
synced 2024-12-25 07:31:50 +01:00
Update for latest wut
This commit is contained in:
parent
f2ca8f4b00
commit
e054e05787
@ -121,8 +121,7 @@ bool ReattachDRC(CCRCDCDestination dest, CCRCDCDrcStateEnum targetState, BOOL un
|
||||
return false;
|
||||
}
|
||||
|
||||
// Not sure what state 3 is
|
||||
if (state.state == CCR_CDC_DRC_STATE_UNK3) {
|
||||
if (state.state == CCR_CDC_DRC_STATE_STANDALONE) {
|
||||
state.state = CCR_CDC_DRC_STATE_ACTIVE;
|
||||
}
|
||||
|
||||
@ -384,7 +383,7 @@ bool FlashScreen::Update(VPADStatus& input)
|
||||
CCRCDCSoftwareAbort(CCR_CDC_DESTINATION_DRC0);
|
||||
|
||||
// Reattach the DRC in update mode
|
||||
if (!ReattachDRC(CCR_CDC_DESTINATION_DRC0, CCR_CDC_DRC_STATE_UPDATE, FALSE)) {
|
||||
if (!ReattachDRC(CCR_CDC_DESTINATION_DRC0, CCR_CDC_DRC_STATE_FWUPDATE, FALSE)) {
|
||||
ReattachDRC(CCR_CDC_DESTINATION_DRC0, CCR_CDC_DRC_STATE_ACTIVE, FALSE);
|
||||
mErrorString = "Failed to reattach DRC in update mode.";
|
||||
mState = STATE_ERROR;
|
||||
|
@ -84,6 +84,10 @@ bool MainScreen::Update(VPADStatus& input)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (mStateFailure) {
|
||||
return false;
|
||||
}
|
||||
|
||||
MochaUtilsStatus status;
|
||||
switch (mState) {
|
||||
case STATE_INIT:
|
||||
|
Loading…
Reference in New Issue
Block a user