mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-02 12:15:36 +02:00
Parse `sdcard` from `home_flag` bits 8-9 (HAS_SDCARD_NORMAL / HAS_SDCARD_ABNORMAL) when available and fall back to a type-tolerant truthy check on the top-level `sdcard` field. Firmware ships that field inconsistently (bool, int `1`, or string `"HAS_SDCARD_NORMAL"`), so the previous `is True` identity check flipped the badge to red on every report that carried a non-bool value.