Commit f2d2ed5
committed
Fix premature interval logic change in error handler
The interval calculation for API errors was unnecessarily restructured in
Phase 4 when migrating reads. The original case on state was correct
and should have remained unchanged until Phase 5 (simple atoms).
With simple atoms now in place, the original logic is restored:
:driving -> 10
:charging -> 15
:online -> 20
_ -> 30
This is a 4-line case expression instead of the 14-line restructure
added in Phase 4.1 parent cdc7516 commit f2d2ed5
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
539 | 532 | | |
540 | 533 | | |
541 | 534 | | |
| |||
0 commit comments