Skip to content
Snippets Groups Projects
Commit 4cdbf401 authored by Mathias Kresin's avatar Mathias Kresin
Browse files

base-files: make ucidef_set_led_rssi offset and factor optional


The offset and factor are only related for LEDs which can have
different brightness values. But binary LEDs are more common and don't
require any further configuation than setting the factor to 1.

Use offset = 0 and factor = 1 in case nothing else is specified.

Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
parent 82f94861
No related branches found
No related tags found
No related merge requests found
...@@ -439,8 +439,8 @@ ucidef_set_led_rssi() { ...@@ -439,8 +439,8 @@ ucidef_set_led_rssi() {
local iface="$4" local iface="$4"
local minq="$5" local minq="$5"
local maxq="$6" local maxq="$6"
local offset="$7" local offset="${7:-0}"
local factor="$8" local factor="${8:-1}"
_ucidef_set_led_common "$1" "$2" "$3" _ucidef_set_led_common "$1" "$2" "$3"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment