Page 1 of 1

The Thermosensors plugin does not work

Posted: 02 Oct 2023, 18:14
by Andrew Mamohin
The Thermosensors plugin does not work with the MAX6675 module in version ESP_Easy_mega_20230930 for S2.
The temperature is always equal NAN.
When I flash version 20230822 the plugin works fine.
9BaEAWNEoa.jpg
9BaEAWNEoa.jpg (47.07 KiB) Viewed 7298 times

Re: The Thermosensors plugin does not work

Posted: 02 Oct 2023, 23:14
by Ath
How is SPI configured?
I assume you've checked the wiring 3 times? (like I usually do if something won't work as expected)

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 07:22
by Andrew Mamohin
Hi!
Yes, I checked. This device has been working for some time on the firmware 20230822. I tried several times to flash firmware 20230930, but I always get nan.
And now the device works well on 20230822.
Knmp8yM3JZ.jpg
Knmp8yM3JZ.jpg (17.44 KiB) Viewed 7276 times
7vxen4EZOP.jpg
7vxen4EZOP.jpg (10.84 KiB) Viewed 7276 times

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 08:46
by TD-er
Which exact build are you using? (filename)
I did remove quite a lot of "excessive logs" etc. from that plugin and wrapped it in "#ifndef BUILD_NO_DEBUG" or "#ifndef LIMIT_BUILD_SIZE"
So it might be possible there was something done in such log-only code blocks. But that would probably have been a bug anyway as those would then not be executed if log level was not set.

Have to check the code changes to be sure.

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 08:48
by TD-er
Ah nope... found the bug I introduced....

https://github.com/letscontrolit/ESPEas ... 3648f18d09

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 08:52
by TD-er

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 09:50
by Andrew Mamohin
TD-er wrote: 03 Oct 2023, 08:52 Can you check this PR when it is ready building?
Yes! This build works. Thank you! You fix bugs amazingly quickly!

Re: The Thermosensors plugin does not work

Posted: 03 Oct 2023, 11:00
by TD-er
Sadly not as quick as I write them... ;)