Added returns to functions
This commit is contained in:
parent
212249edf6
commit
c21d4da415
6
rgbled.c
6
rgbled.c
@ -60,6 +60,8 @@ int8_t rgbled_set_intensity(uint8_t intensity)
|
|||||||
return RGBLED_ERROR;
|
return RGBLED_ERROR;
|
||||||
}
|
}
|
||||||
rgbled_intensity = intensity;
|
rgbled_intensity = intensity;
|
||||||
|
|
||||||
|
return RGBLED_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t rgbled_get_intensity(uint8_t *intensity)
|
int8_t rgbled_get_intensity(uint8_t *intensity)
|
||||||
@ -68,9 +70,13 @@ int8_t rgbled_get_intensity(uint8_t *intensity)
|
|||||||
return RGBLED_ERROR;
|
return RGBLED_ERROR;
|
||||||
}
|
}
|
||||||
*intensity = rgbled_intensity;
|
*intensity = rgbled_intensity;
|
||||||
|
|
||||||
|
return RGBLED_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t rgbled_off(void)
|
int8_t rgbled_off(void)
|
||||||
{
|
{
|
||||||
rgbled_set_color(RGBLED_OFF);
|
rgbled_set_color(RGBLED_OFF);
|
||||||
|
|
||||||
|
return RGBLED_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user