feat(core): add rgb effect api placeholders into the unix implementation.
What changed, and why it matters
This commit adds empty placeholder functions for RGB LED effects in the Unix (simulator/emulator) build of the Trezor firmware. The functions do nothing and simply return. There is no security-relevant change.
No security action required. This is a benign feature placeholder.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch introduces stub implementations of rgb_led_effect_start() and rgb_led_effect_stop() for the Unix target in core/embed/io/rgb_led/unix/rgb_led.c. These stubs are no-ops because RGB effects are not yet supported in the Unix environment. The change is purely additive and does not modify any existing logic, memory handling, or security-critical code paths.
Changed components
core/embed/io/rgb_led/unix/rgb_led.cInspect captured patch +13 / −0
diff --git a/core/embed/io/rgb_led/unix/rgb_led.c b/core/embed/io/rgb_led/unix/rgb_led.c
index b55428799..a96ebb6a3 100644
--- a/core/embed/io/rgb_led/unix/rgb_led.c
+++ b/core/embed/io/rgb_led/unix/rgb_led.c
@@ -89,4 +89,17 @@ void rgb_led_set_color(uint32_t color) {
display_rgb_led(color);
}
+void rgb_led_set_color(uint32_t color) { display_rgb_led(color); }
+
+void rgb_led_effect_start(rgb_led_effect_type_t effect_type,
+ uint32_t requested_cycles) {
+ // RGB effect not supported in unix yet
+ return;
+}
+
+void rgb_led_effect_stop(void) {
+ // RGB effect not supported in unix yet
+ return;
+}
+
#endif /* KERNEL_MODE */
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.