Skip to content

Commit

Permalink
lights: fix derp
Browse files Browse the repository at this point in the history
  • Loading branch information
Daz Jones committed Dec 11, 2012
1 parent ee93da0 commit 260b9db
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions lights/lights.c
Expand Up @@ -197,21 +197,20 @@ set_speaker_light_locked(struct light_device_t* dev,
pwm = 16;

blink = 1;
if(read_int(SLEEP_FILE) == 0) {
v[0] = colorRGB;
v[1] = onMS/2;
v[2] = offMS;
huawei_oem_rapi_streaming_function(0x26, 0, 0, 0xc, v, 0, 0);
}

v[0] = colorRGB;
v[1] = onMS/2;
v[2] = offMS;
huawei_oem_rapi_streaming_function(0x26, 0, 0, 0xc, v, 0, 0);
} else {
blink = 0;
freq = 0;
pwm = 0;
if(read_int(SLEEP_FILE) == 0) {
v[0] = colorRGB;
v[1] = 0;
v[2] = 0;
huawei_oem_rapi_streaming_function(0x26, 0, 0, 0xc, v, 0, 0);

v[0] = colorRGB;
v[1] = 0;
v[2] = 0;
huawei_oem_rapi_streaming_function(0x26, 0, 0, 0xc, v, 0, 0);
}
}

Expand Down

0 comments on commit 260b9db

Please sign in to comment.