You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: integrate driver-based panel rendering into Dashboard
drawAmbientPanel and drawSlotPanel now use sensorRenderPanel()
from the sensor driver dispatch, replacing hardcoded temperature
and humidity rendering. Old code preserved but skipped via goto
(compiler dead-code-eliminates where possible).
Changes:
- SystemState: +ambientType, +slotType fields
- setAmbientData/setSlotData: accept and store SensorType
- AppManager_HistoryAlarm: pass sensor type from RuntimeSensor
- Dashboard: sensorRenderPanel() for both panels' normal mode
- All callers updated to pass SensorType parameter
Flash: 1031280 bytes (-256 bytes vs baseline!)
Tests: 49/49 pass.
The driver now owns panel formatting. New sensors just add
their renderPanel() function and it works for both panels.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments