Commit 09a8d40
committed
fix: refine 5M family printer detection to match backend logic
Changed printer type detection to exactly match the backend
PrinterUtils.detectPrinterFamily() implementation:
- Removed overly broad 'Pro' check that could incorrectly catch legacy
"Pro" models (e.g., Guider Pro, Creator Pro)
- Now only checks for '5m' and 'ad5x' (case-insensitive)
- This correctly identifies:
* Adventurer 5M (contains '5m')
* Adventurer 5M Pro (contains '5m')
* AD5X (contains 'ad5x')
* AD5X Pro (contains 'ad5x')
- Prevents false positives on legacy Pro models
Reference: FlashForgeUI-Electron/src/utils/PrinterUtils.ts:228-2661 parent 3d756d1 commit 09a8d40
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
| |||
0 commit comments