On Mon, Jul 06, 2015 at 09:58:30AM +0100, Lee Jones wrote: > + tmp = max_duty_cycle - min_mV * max_duty_cycle / vdiff; > + pwm_code = tmp + max_duty_cycle * volt_mV / vdiff;
These need some brackets to be clear that they're correct.
signature.asc
Description: Digital signature

