Re: Linux printf funny



Peter Dickerson wrote:


If I was a betting man (which I'm not) then I'd say ScaleFactor is being corrupted somewhere else. Clearly TareWeight doesn't stay 0 either. So, what changes them?


TareWeight is set (in this rather attenuated version of the program) by the first read of the ADC on startup. Scale factor is a constant (i.e. I've taken out the bit that changes it) while I'm getting the basics going with the changed OS.

Paul Burke
.


Quantcast