[Horus] Disable the WD timer on USB massstorage read/write

This commit is contained in:
Bertrand Songis
2016-08-28 08:47:51 +02:00
parent b105214e32
commit 506b24829c
@@ -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;