Commit b2e91f9
Millennia eV: status snapshot + preserve init error
Two small gaps on the eV driver that pushed work into downstream callers:
* doInitializeDevice caught the failure and raised a bare
PhysicalDevice.UnableToInitialize(), discarding the underlying
serial error. Callers could no longer tell a busy port ("[Errno 16]
Resource busy") from a missing one. Now re-raises
UnableToInitialize(error) from error so the cause is preserved.
* MillenniaEv25Device did not override doGetStatusUserInfo(), so the
base returned None and PhysicalDevice.startBackgroundStatusUpdates()
posted empty status notifications for the eV. Added an override
returning {power, isLaserOn, isShutterOpen} — a one-call snapshot for
background monitoring and for GUI polling.
Adds a debug-device test for the status snapshot.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K6LVhfM3d9CcJdkuSMMqag1 parent a30f969 commit b2e91f9
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
200 | 217 | | |
201 | 218 | | |
202 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| |||
0 commit comments