What changed, and why it matters
This commit is a minor cleanup that incorporates suggestions from a contributor. It fixes a wording line in the changelog, corrects an indentation issue in a shell script, and refactors two Python expressions to use the `any()` function instead of chained `or` operators. There is no security relevance visible in the changes.
No security action needed. Treat as routine code/style maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff contains three non-functional changes: (1) a wording update in CHANGELOG.md for the TZT CanMV device description, (2) an indentation fix in the krux shell script for a comment under the maixpy_tzt branch, and (3) a stylistic refactor in src/krux/kboard.py replacing boolean or chains with any([...]) for has_touchscreen and can_control_brightness. No logic, privilege boundary, input handling, cryptographic, or device-access behavior is altered.
Changed components
CHANGELOG.mdkrux (shell script)src/krux/kboard.pyInspect captured patch +6 / −6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f82c25f..cc05951 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,7 @@
# Changelog 25.XX.X - XXX 2025
### New Device Support: TZT
-The TZT CanMV is similar to the WonderMV, but adds five buttons and a premium, fully enclosed aluminum housing that completely wraps the device.
+The TZT CanMV is similar to the WonderMV but includes five buttons and a premium milled aluminum housing.
# Changelog 25.09.0 - September 2025
diff --git a/krux b/krux
index 353e43a..08b4491 100755
--- a/krux
+++ b/krux
@@ -116,7 +116,7 @@ elif [ "$1" == "flash" -o "$1" == "boot" -o "$1" == "erase" ]; then
# https://devicehunt.com/view/type/usb/vendor/1a86/device/7523
device_vendor_product_id="1a86:7523"
elif [ "$device" == "maixpy_tzt" ]; then
- # https://devicehunt.com/view/type/usb/vendor/1a86/device/55d3
+ # https://devicehunt.com/view/type/usb/vendor/1a86/device/55d3
device_vendor_product_id="1a86:55d3"
fi
if [ -z "$device_vendor_product_id" ]; then
diff --git a/src/krux/kboard.py b/src/krux/kboard.py
index 68ed99b..93c051d 100644
--- a/src/krux/kboard.py
+++ b/src/krux/kboard.py
@@ -34,12 +34,12 @@ class KBoard:
self.is_wonder_mv = board.config["type"] == "wonder_mv"
self.is_tzt = board.config["type"] == "tzt"
self.is_m5stickv = board.config["type"] == "m5stickv"
- self.has_touchscreen = (
- self.is_yahboom or self.is_wonder_mv or self.is_tzt or self.is_amigo
+ self.has_touchscreen = any(
+ [self.is_yahboom, self.is_wonder_mv, self.is_tzt, self.is_amigo]
)
self.has_minimal_display = self.is_m5stickv or self.is_cube
- self.can_control_brightness = (
- self.is_cube or self.is_m5stickv or self.is_wonder_mv
+ self.can_control_brightness = any(
+ [self.is_cube, self.is_m5stickv, self.is_wonder_mv]
)
self.can_flip_orientation = self.is_yahboom or self.is_wonder_mv
self.has_light = "LED_W" in board.config["krux"]["pins"]
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.