mirror of https://github.com/rusefi/rusefi.git
Stashed
This commit is contained in:
parent
a103960186
commit
74e6e184df
|
@ -28,6 +28,8 @@ const char* getCriticalErrorMessage(void) {
|
||||||
void checkLastBootError() {
|
void checkLastBootError() {
|
||||||
#if EFI_BACKUP_SRAM
|
#if EFI_BACKUP_SRAM
|
||||||
auto sramState = getBackupSram();
|
auto sramState = getBackupSram();
|
||||||
|
if (sramState == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (sramState->Cookie) {
|
switch (sramState->Cookie) {
|
||||||
case ErrorCookie::FirmwareError:
|
case ErrorCookie::FirmwareError:
|
||||||
|
@ -82,6 +84,9 @@ void logHardFault(uint32_t type, uintptr_t faultAddress, port_extctx* ctx, uint3
|
||||||
TURN_FATAL_LED();
|
TURN_FATAL_LED();
|
||||||
#if EFI_BACKUP_SRAM
|
#if EFI_BACKUP_SRAM
|
||||||
auto sramState = getBackupSram();
|
auto sramState = getBackupSram();
|
||||||
|
if (sramState == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
sramState->Cookie = ErrorCookie::HardFault;
|
sramState->Cookie = ErrorCookie::HardFault;
|
||||||
sramState->FaultType = type;
|
sramState->FaultType = type;
|
||||||
sramState->FaultAddress = faultAddress;
|
sramState->FaultAddress = faultAddress;
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
|
||||||
|
|
||||||
#include "rusefi_halconf.h"
|
#include "rusefi_halconf.h"
|
||||||
|
|
||||||
#include "../../cfg/halconf_community.h"
|
#include "../../cfg/halconf_community.h"
|
||||||
|
|
Loading…
Reference in New Issue