mirror of
https://github.com/GaryOderNichts/DRXUtil.git
synced 2025-02-17 07:06:18 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not sure what state 3 is
|
if (state.state == CCR_CDC_DRC_STATE_STANDALONE) {
|
||||||
if (state.state == CCR_CDC_DRC_STATE_UNK3) {
|
|
||||||
state.state = CCR_CDC_DRC_STATE_ACTIVE;
|
state.state = CCR_CDC_DRC_STATE_ACTIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -384,7 +383,7 @@ bool FlashScreen::Update(VPADStatus& input)
|
|||||||
CCRCDCSoftwareAbort(CCR_CDC_DESTINATION_DRC0);
|
CCRCDCSoftwareAbort(CCR_CDC_DESTINATION_DRC0);
|
||||||
|
|
||||||
// Reattach the DRC in update mode
|
// 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);
|
ReattachDRC(CCR_CDC_DESTINATION_DRC0, CCR_CDC_DRC_STATE_ACTIVE, FALSE);
|
||||||
mErrorString = "Failed to reattach DRC in update mode.";
|
mErrorString = "Failed to reattach DRC in update mode.";
|
||||||
mState = STATE_ERROR;
|
mState = STATE_ERROR;
|
||||||
|
@ -84,6 +84,10 @@ bool MainScreen::Update(VPADStatus& input)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mStateFailure) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
MochaUtilsStatus status;
|
MochaUtilsStatus status;
|
||||||
switch (mState) {
|
switch (mState) {
|
||||||
case STATE_INIT:
|
case STATE_INIT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user