Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 994:bad5561c0c59 GasConsumption
Fix a compilation error occurring on non-Windows platforms, caused by incorrect case in '#include' file names.
Also fix some compiler warnings from non-safe use of 'memcpy'. (mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 27 Apr 2025 09:56:22 +0200 |
| parents | d9290c76b840 |
| children | 8507a87f6401 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Fri Apr 25 08:26:03 2025 +0200 +++ b/Discovery/Src/t7.c Sun Apr 27 09:56:22 2025 +0200 @@ -4648,7 +4648,7 @@ } else { - memcpy (&ChargerLog[0],&ChargerLog[1],sizeof(ChargerLog) - 1); + memmove(&ChargerLog[0], &ChargerLog[1], sizeof(ChargerLog) - 1); ChargerLog[curIndex] = level; } if(curIndex > 1) /* estimate time til charging is complete */
