From 5c1c51642eb39821ed9535aa0b8127d131a2c58a Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Wed, 4 Nov 2015 12:46:37 +1100 Subject: [PATCH] Fix newly introduced incorrect WDT feeding. --- app/modules/hx711.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/hx711.c b/app/modules/hx711.c index 75822b9c..68a1f415 100644 --- a/app/modules/hx711.c +++ b/app/modules/hx711.c @@ -36,7 +36,7 @@ static int ICACHE_FLASH_ATTR hx711_read(lua_State* L) { //wait for data ready. or time out. //TODO: set pin inturrupt and come back to it. This may take up to 1/10 sec // or maybe just make an async version too and have both available. - WRITE_PERI_REG(0x60000914, 0x73); //clear WDT... this may take a while. + system_soft_wdt_feed(); //clear WDT... this may take a while. for (i = 0; i