Repository navigation
Commit 00a2689
fix(inverter): skip the discharge target write on AC Coupled GivTCP inverters (#4517)
AC Coupled inverters don't have a working Discharge_Target_SOC_1 register -
GivTCP still reports each write as successful, but it never persists
between cycles, so adjust_force_export() saw a permanent mismatch and
rewrote it every single cycle indefinitely.
Confirmed against GivEnergy's own firmware archive
(github.com/DJBenson/giv-firmware): "AC Coupled" is a single product line
with exactly two firmware releases ever published, not an early/late
generational split the way the Hybrid line has Gen1/2/3 - so there's no
newer AC-coupled variant this would need to keep working for. Skip the
write outright when raw.invertor.model reports "Ac", rather than attempting
one already known to be doomed.
Supersedes the earlier enable-before-write approach on this same issue -
that theory relied on a correlation with a second reporter's data that
turned out to be from before #4492/#4518 existed and was confounded by the
exact race condition those fixes address, so it was never solid evidence
that AC Coupled's register works anywhere. Dropped rather than kept
alongside this fix, since it has no remaining supporting evidence.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 7ae4318 commit 00a2689
2 files changed
Lines changed: 83 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2523 | 2523 | | |
2524 | 2524 | | |
2525 | 2525 | | |
2526 | | - | |
2527 | | - | |
2528 | | - | |
2529 | | - | |
2530 | | - | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
2531 | 2536 | | |
2532 | | - | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
2533 | 2544 | | |
2534 | 2545 | | |
2535 | 2546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
1930 | 1990 | | |
1931 | 1991 | | |
1932 | 1992 | | |
| |||
3173 | 3233 | | |
3174 | 3234 | | |
3175 | 3235 | | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
3176 | 3242 | | |
3177 | 3243 | | |
3178 | 3244 | | |
| |||
0 commit comments