customizer: gpio_motors becomes ptz_gpio, with ptz_control naming the method - #140
Conversation
… method The #227 PTZ env rename (majestic-webui#232, firmware#2341) made ptz_gpio the documented pin-list variable, with gpio_motors kept as a compatibility alias. These three customizers were the remaining writers of the old name; flyrouter asked for them to move to the new format (OpenIPC/majestic-webui#227). Each also gains 'fw_setenv ptz_control gpio': the WebUI is dropping its auto-detection from a bare pin list (unset ptz_control now means no PTZ, per the same issue — majestic-webui#255), so the method must be named for the pad to appear. In t23_lite_jooan-a6m-u the pin line was commented out, so both new lines are commented there too.
PR Summary by QodoMigrate device PTZ settings to the documented environment names
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR |
Completes the #227 PTZ env rename (majestic-webui#232, firmware#2341) in the last place still writing the old name, as requested by @flyrouter in majestic-webui#227: the three
customizer.shfiles carryingfw_setenv gpio_motors …now writeptz_gpioinstead. Thegpio-motorsutility readsptz_gpiofirst and falls back togpio_motorssince firmware#2341, and it is the only consumer of the variable anywhere in the org, so the rename is mechanical.Each device also gains
fw_setenv ptz_control gpio— not part of the rename, but required by it: the WebUI is dropping its auto-detection from a bare pin list (unsetptz_controlnow means no PTZ, per flyrouter's ruling on the same issue; majestic-webui#255). Without the method named, these devices would keep their motors but lose their pads.devices/t23_lite_jooan-q3r-u— active, 5 pinsdevices/ssc30kd_lite_cmcc-ds-ytj5301— active, 8 pinsdevices/t23_lite_jooan-a6m-u— the pin line was commented out, so both new lines are commented there too