()
| 15139 | |
| 15140 | |
| 15141 | @app.route('/api/power/usb-current', methods=['POST']) |
| 15142 | def api_power_usb_current(): |
| 15143 | """Set usb_max_current_enable in config.txt (Pi 5 family only). |
| 15144 | |
| 15145 | Raises the firmware's 600 mA cap on all USB ports together to 1.6 A. |
| 15146 | Takes effect after a reboot; the response says so via pending_reboot. |
| 15147 | """ |
| 15148 | try: |
| 15149 | import power_tools |
| 15150 | import power_budget |
| 15151 | body = request.get_json(silent=True) or {} |
no test coverage detected