Skip to content

Commit

Permalink
Merge pull request #727 from hello/reset-lights
Browse files Browse the repository at this point in the history
fix factory reset pairing lights
  • Loading branch information
plasticchris authored Jan 18, 2017
2 parents ab5540d + b85261b commit 24b15ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kitsune/ble_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ void play_startup_sound() {
// when the bond db is full, so you will never get zero after a phone bonds
// to Sense, unless user do factory reset and power cycle the device.

if(needs_startup_sound){
if( needs_startup_sound){
vTaskDelay(10);
AudioPlaybackDesc_t desc;
memset(&desc, 0, sizeof(desc));
Expand All @@ -691,9 +691,8 @@ void play_startup_sound() {
if( need_init_lights ) {
ble_proto_led_init();
need_init_lights = false;
display_pairing_animation();
}


}

#include "crypto.h"
Expand Down Expand Up @@ -834,7 +833,7 @@ bool on_ble_protobuf_command(MorpheusCommand* command)
needs_pairing_animation = true;
set_ble_mode(BLE_PAIRING);
LOGI( "PAIRING MODE \n");
if(xTaskGetTickCount() > 10000){
if( !need_init_lights ) {
display_pairing_animation();
}
#if 0
Expand Down

0 comments on commit 24b15ac

Please sign in to comment.