MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _manual_attack_matrix_payload

Function _manual_attack_matrix_payload

webapp_modern.py:15141–15148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15139
15140
15141@app.route('/api/power/usb-current', methods=['POST'])
15142def 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 {}

Callers 1

get_manual_targetsFunction · 0.85

Calls 2

itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected