What changed, and why it matters
This commit updates the Krux firmware to use an optimized version of MaixPy and enables grayscale mode for GC2145 cameras in Tinyseed devices. The visible code change removes a special-case exception that previously skipped grayscale for GC2145 cameras. The stated goal is to reduce firmware size by 25% and lower RAM usage. There is no direct evidence in the commit or supplied references that this fixes a security vulnerability.
No security action required based on the supplied commit. Treat as a routine performance/optimization update. If reviewing the MaixPy submodule change, verify the submodule pointer corresponds to a known, trusted optimized build and that no unintended behavior changes were introduced for GC2145 grayscale capture.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies src/krux/camera.py so that BINARY_GRID_MODE always sets the sensor pixel format to GRAYSCALE, removing the previous guard and self.cam_id != GC2145_ID. The submodule firmware/MaixPy is updated to an optimized build. CHANGELOG.md documents this as code optimization reducing firmware size and RAM usage. No security-relevant bug, exploit primitive, or vulnerability remediation is described in the commit materials.
Changed components
src/krux/camera.pyfirmware/MaixPy (submodule)GC2145 camera support on Tinyseed devicesInspect captured patch +5 / −2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc05951..f1fe945 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,9 @@
### New Device Support: TZT
The TZT CanMV is similar to the WonderMV but includes five buttons and a premium milled aluminum housing.
+### Code optimization
+Reduced firmware size by 25% and lowered RAM usage through code cleanup and optimizations.
+
# Changelog 25.09.0 - September 2025
### Extended Encryption Options
diff --git a/src/krux/camera.py b/src/krux/camera.py
index 8c5672f..1f9848f 100644
--- a/src/krux/camera.py
+++ b/src/krux/camera.py
@@ -96,7 +96,7 @@ class Camera:
sensor.set_hmirror(1)
sensor.set_vflip(1)
self.mode = mode
- if mode == BINARY_GRID_MODE and self.cam_id != GC2145_ID:
+ if mode == BINARY_GRID_MODE:
# Binary grid mode uses grayscale except for GC2145
sensor.set_pixformat(sensor.GRAYSCALE)
else:
Why this scored 12/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.