File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void setup()
60
60
blinkTimer.begin (1000 , blink_timer_callback);
61
61
blinkTimer.start ();
62
62
63
- if (Bluefruit.begin ())
63
+ if (! Bluefruit.begin ())
64
64
{
65
65
Serial.println (" Unable to init Bluefruit" );
66
66
while (1 )
Original file line number Diff line number Diff line change @@ -580,12 +580,22 @@ void AdafruitBluefruit::setConnLedInterval(uint32_t ms)
580
580
if ( !active ) xTimerStop (_led_blink_th, 0 );
581
581
}
582
582
583
- bool AdafruitBluefruit::setApperance (uint16_t appear)
583
+ bool AdafruitBluefruit::setApperance (uin16_t appear)
584
+ {
585
+ setAppearance (appear);
586
+ }
587
+
588
+ bool AdafruitBluefruit::setAppearance (uint16_t appear)
584
589
{
585
590
return ERROR_NONE == sd_ble_gap_appearance_set (appear);
586
591
}
587
592
588
- uint16_t AdafruitBluefruit::getApperance (void )
593
+ bool AdafruitBluefruit::getApperance (void )
594
+ {
595
+ getAppearance (void );
596
+ }
597
+
598
+ uint16_t AdafruitBluefruit::getAppearance (void )
589
599
{
590
600
uint16_t appear = 0 ;
591
601
(void ) sd_ble_gap_appearance_get (&appear);
Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ class AdafruitBluefruit
154
154
int8_t getTxPower (void );
155
155
156
156
bool setApperance (uint16_t appear);
157
+ bool setAppearance (uint16_t appear);
157
158
uint16_t getApperance (void );
159
+ uint16_t getAppearance (void );
158
160
159
161
ble_gap_sec_params_t getSecureParam (void )
160
162
{
You can’t perform that action at this time.
0 commit comments