Gabe
84a7b797cd
fix(printers): decode airduct part state from its low 8 bits
...
Review feedback on #2691 : `state` is bit-packed like its sibling `range`
(end << 16 | start), and Bambu Studio decodes it with
get_flag_bits(state, 0, 8). Masking with & 0xFF before clamping means a
packed value decodes to the real percentage instead of clamping to 100.
Also moves the uses_exhaust_fan_label import to the top of printers.py with
the other imports.
Tests: packed value (60 << 16 | 45) decodes to 45, and plain 0-100 values
round-trip unchanged.
2026-07-28 11:16:23 -05:00
..
2026-04-28 13:58:56 +02:00
2026-05-01 12:34:56 +02:00
2026-05-04 10:09:25 +02:00
2026-07-02 11:32:22 +02:00
2026-06-03 14:37:31 +02:00
2026-07-12 08:44:53 +02:00
2026-07-01 08:37:31 +02:00
2026-07-11 09:05:49 +02:00
2026-07-27 10:34:56 +02:00
2026-05-18 10:52:02 +02:00
2026-07-14 11:52:56 +02:00
2026-05-22 13:55:16 +02:00
2026-07-06 07:54:30 +02:00
2026-07-16 09:47:21 +02:00
2026-06-22 10:00:02 +02:00
2026-05-20 11:25:45 +02:00
2026-07-18 09:33:22 +02:00
2026-06-29 10:59:29 +02:00
2026-05-17 08:20:28 +02:00
2026-07-07 10:31:19 +02:00
2026-05-15 12:05:43 +02:00
2026-05-22 16:31:16 +02:00
2026-07-20 13:04:35 +02:00
2026-05-22 09:28:43 +02:00
2026-07-21 07:26:19 +02:00
2026-07-06 13:03:22 +02:00
2026-07-28 10:58:08 +02:00
2026-06-22 08:15:29 +02:00
2026-07-17 08:16:35 +02:00
2026-07-28 11:16:23 -05:00
2026-06-19 07:28:09 +02:00
2026-07-11 14:22:31 +02:00
2026-06-12 10:14:06 +02:00
2026-07-11 09:18:35 +02:00
2026-07-09 08:43:59 +02:00
2026-07-27 10:34:56 +02:00
2026-07-11 14:22:31 +02:00
2026-04-28 16:36:49 +02:00
2026-06-12 10:14:06 +02:00
2026-07-22 10:44:05 +02:00
2026-07-27 11:18:54 +02:00
2026-06-25 09:26:33 +02:00
2026-06-10 08:39:21 +02:00
2026-07-22 09:57:27 +02:00
2026-05-21 09:02:18 +02:00
2026-06-10 08:39:21 +02:00
2026-05-14 09:14:24 +02:00
2026-06-09 09:16:36 +02:00
2026-07-01 09:50:30 +02:00
2026-07-18 16:41:15 +02:00
2026-06-02 12:12:54 +02:00
2026-05-03 14:58:29 +02:00
2026-05-22 14:22:37 +02:00
2026-07-24 12:54:22 +02:00
2026-06-02 14:33:20 +02:00
2026-06-07 08:39:40 +02:00