PWM solar input: Fix voltage calculation offset in dts
This offset had to be left-shifted by 4 since the DAQ calculations switched to 16-bit resolution.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
io-channels = <&adc1 4>;
|
||||
multiplier = <25224>; // (12*8.2 + 120*8.2 + 120*12) * 10
|
||||
divider = <984>; // (8.2*12) * 10
|
||||
offset = <2338>; // 4096 / (1 + 8.2/120 + 8.2/12)
|
||||
offset = <37414>; // 65536 / (1 + 8.2/120 + 8.2/12)
|
||||
};
|
||||
|
||||
temp-fets {
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
io-channels = <&adc1 1>;
|
||||
multiplier = <25224>; // (12*8.2 + 120*8.2 + 120*12) * 10
|
||||
divider = <984>; // (8.2*12) * 10
|
||||
offset = <2338>; // 4096 / (1 + 8.2/120 + 8.2/12)
|
||||
offset = <37414>; // 65536 / (1 + 8.2/120 + 8.2/12)
|
||||
};
|
||||
|
||||
i-load {
|
||||
|
||||
Reference in New Issue
Block a user