Traumflug
Traumflug
Ah, I see :-) Should be the same for AVRs and STMs using an external temp sensor, too, because these don't need to start a conversion, either. Looking at the...
On an ATmega based controller using all external sensors like the MCP3008, ADC isn't used either, so no ADC starts happen. Still it's marked as 'HAVE_CLOCK_TICK'. Perhaps it's less ambiguous...
> I think I like the NEEDS_ADC_START better. Then let's take this :-)
A dummy function would be to get away without #define NEEDS_ADC_START altogether. As this #define is kept now, there's no need for a dummy function.
The one which is easier to read. @phord says using a #define is easier, I trust him. Either way it's easy to change that later, so the decision isn't crucial.
Thanks a ton for your work, @Wurstnase, @nythil, @phord. I'll move that to _experimental_ before too long, looks very good. Right now I'm doing taxes, so electronics is off the...
To give a quick update: my reviewing part is mostly done and it looks good, except for the last commit, which emits a compiler warning. Along the way I squashed...
> First, turning off a PWM heater doesn't really turn it off. Setting OCRxA/OCRxB to zero causes a single "on" impulse each time the timer wraps around (i.e. TCNTx =...
> casts are forbidden in preprocessor macros. Well, macros have no concept of a "cast". Macros simply replace a word with a short blob of text. If there is a...
Good. Stuff except for that last commit is on _experimental_ It turned out to work just fine on AVR and ARM. Here are the measurements: ``` Old code: AVR, EWMA...