Repository navigation
Commit c3b3524
fix(profile): deferred ADAS block keeps the write lock
On a cold head unit EVHardware runs a whenKatman4Ready listener later on
the main looper. ProfileApplier's ADAS/Custom block then ran outside
applyMutex, with its Thread.sleep calls on the UI thread, and could
interleave with a newer profile's writes. The block now runs inline when
the service is already up (still under the lock), and otherwise is sent
back to the applier scope under applyMutex — dropped if a newer profile
was requested meanwhile. Also tracks EVHardware master b4767da (charge-
limit write held back).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 2cb00ed commit c3b3524
3 files changed
Lines changed: 166 additions & 131 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments