summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 7019c8d..753b412 100644
--- a/src/app.c
+++ b/src/app.c
@@ -369,6 +369,9 @@ static bool service_app_create(void *data)
controller_connection_manager_set_user_name_received_cb(__user_name_received_cb);
resource_bi_led_set(LED_COLOR_RED);
+ resource_rgb_gpio_set(0, 0, 1);
+ resource_rgb_l2c_set(0, 0, 255);
+
return true;
}
@@ -392,6 +395,8 @@ static void service_app_terminate(void *data)
{
app_data *ad = data;
resource_bi_led_set(LED_COLOR_NONE);
+ resource_rgb_gpio_set(0, 0, 0);
+ resource_rgb_l2c_set(0, 0, 0);
resource_set_servo_motor_value(s_info.stering_pin, STERING_SERVO_CENTER);
resource_set_servo_motor_value(s_info.elevation_pin, ELEVATION_MIN);