am 59ba0fcf: Add USB accessory support to passion builds
* commit '59ba0fcfa80a137559063233916acc5fbab0c8e1':
Add USB accessory support to passion builds
diff --git a/liblights/lights.c b/liblights/lights.c
index a6156d6..2850ac1 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -236,6 +236,8 @@
if (state->flashMode == LIGHT_FLASH_HARDWARE) {
mode = state->flashOnMS;
period = state->flashOffMS;
+ period = (period < 2) ? 2 : period;
+ period = (period > 12) ? 12 : period;
}
LOGV("%s color=%08x mode=%d period %d\n", __func__,
state->color, mode, period);
@@ -262,7 +264,7 @@
}
trackball_mode = mode;
-return write_int(&leds[JOGBALL_LED].brightness, mode);
+ return write_int(&leds[JOGBALL_LED].brightness, mode);
}
static void