gpio_led: code style fixed

This commit is contained in:
Anton Babushkin 2014-03-13 00:25:00 +04:00
parent 6f55077541
commit bc36b540a5
1 changed files with 4 additions and 2 deletions

View File

@ -253,8 +253,9 @@ void gpio_led_cycle(FAR void *arg)
bool updated;
orb_check(priv->vehicle_status_sub, &updated);
if (updated)
if (updated) {
orb_copy(ORB_ID(vehicle_status), priv->vehicle_status_sub, &priv->status);
}
/* select pattern for current status */
int pattern = 0;
@ -294,8 +295,9 @@ void gpio_led_cycle(FAR void *arg)
priv->counter++;
if (priv->counter > 5)
if (priv->counter > 5) {
priv->counter = 0;
}
/* repeat cycle at 5 Hz */
if (gpio_led_started) {