Button to apply nDBANK #2996

docs
This commit is contained in:
Andrey 2021-07-20 14:23:45 -04:00
parent 29808150e3
commit 44d7c3605c
1 changed files with 5 additions and 1 deletions

View File

@ -389,8 +389,12 @@ static void handleCommandX14(uint16_t index) {
case 0x14:
#ifdef STM32F7
void sys_dual_bank(void);
/**
* yes, this would instantly cause a hard fault as a random sequence of bytes is decoded as instructions
* and that's the intended behavious - the point is to set flash properly and to re-flash once in proper configuration
*/
sys_dual_bank();
//rebootNow();
rebootNow();
#else
firmwareError(OBD_PCM_Processor_Fault, "Unexpected dbank command", index);
#endif