[Horus] Disable the WD timer on USB massstorage read/write
This commit is contained in:
@@ -223,6 +223,8 @@ int8_t STORAGE_Read (uint8_t lun,
|
||||
uint32_t blk_addr,
|
||||
uint16_t blk_len)
|
||||
{
|
||||
watchdogSetTimeout(100/*1s*/);
|
||||
|
||||
#if defined(EEPROM)
|
||||
if (lun == STORAGE_EEPROM_LUN) {
|
||||
return (fat12Read(buf, blk_addr, blk_len) == 0) ? 0 : -1;
|
||||
@@ -246,6 +248,8 @@ int8_t STORAGE_Write (uint8_t lun,
|
||||
uint32_t blk_addr,
|
||||
uint16_t blk_len)
|
||||
{
|
||||
watchdogSetTimeout(100/*1s*/);
|
||||
|
||||
#if defined(EEPROM)
|
||||
if (lun == STORAGE_EEPROM_LUN) {
|
||||
return (fat12Write(buf, blk_addr, blk_len) == 0) ? 0 : -1;
|
||||
|
||||
Reference in New Issue
Block a user