Searched refs:onMS (Results 1 – 2 of 2) sorted by relevance
132 int onMS, offMS; in set_speaker_light_locked() local137 onMS = state->flashOnMS; in set_speaker_light_locked()142 onMS = 0; in set_speaker_light_locked()151 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked()158 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked()159 int totalMS = onMS + offMS; in set_speaker_light_locked()167 pwm = (onMS * 255) / totalMS; in set_speaker_light_locked()
205 int onMS, offMS; in set_speaker_light_locked() local210 onMS = state->flashOnMS; in set_speaker_light_locked()215 onMS = 0; in set_speaker_light_locked()224 colorRGB, onMS, offMS); in set_speaker_light_locked()249 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked()250 int totalMS = onMS + offMS; in set_speaker_light_locked()258 pwm = (onMS * 255) / totalMS; in set_speaker_light_locked()