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:
Martin Jäger
2020-10-14 09:51:52 +02:00
parent bb39ff6236
commit 06499a2409
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {