Closed mp-se closed 5 months ago
Why is IRAM_ATTR required for ESP32 ? using IRAM_ATTR must be done with care as this is a rare ressource !
Dont know, check with the author of the code, see link above
@mathertel I guess it is cache/flash fetch issue.
Why is IRAM_ATTR required for ESP32 ?
Apparently caching issue skewing micros() timings.
This PR implements the changes suggested in "Error ds18b20 with esp32" #57. Credits goes to the author of the fix.
I can confirm that the getDS18Count()/getDeviceCount() always return 0 on a ESP32 system but this small change fixest that. I could see the fix needed but could not find a PR that actually changes the code.