Compilation fix
This commit is contained in:
+4
-1
@@ -554,8 +554,11 @@ extern uint8_t rotencSpeed;
|
||||
#endif
|
||||
extern uint8_t heartbeat;
|
||||
|
||||
#if defined(CPUARM)
|
||||
#if defined(CPUARM) && !defined(BOOT)
|
||||
void watchdogSuspend(uint32_t timeout);
|
||||
#define WATCHDOG_SUSPEND(x) watchdogSuspend(x)
|
||||
#else
|
||||
#define WATCHDOG_SUSPEND(...)
|
||||
#endif
|
||||
|
||||
#define MAX_ALERT_TIME 60
|
||||
|
||||
@@ -223,7 +223,7 @@ int8_t STORAGE_Read (uint8_t lun,
|
||||
uint32_t blk_addr,
|
||||
uint16_t blk_len)
|
||||
{
|
||||
watchdogSuspend(100/*1s*/);
|
||||
WATCHDOG_SUSPEND(100/*1s*/);
|
||||
|
||||
#if defined(EEPROM)
|
||||
if (lun == STORAGE_EEPROM_LUN) {
|
||||
@@ -248,7 +248,7 @@ int8_t STORAGE_Write (uint8_t lun,
|
||||
uint32_t blk_addr,
|
||||
uint16_t blk_len)
|
||||
{
|
||||
watchdogSuspend(100/*1s*/);
|
||||
WATCHDOG_SUSPEND(100/*1s*/);
|
||||
|
||||
#if defined(EEPROM)
|
||||
if (lun == STORAGE_EEPROM_LUN) {
|
||||
|
||||
Reference in New Issue
Block a user