clean up
This commit is contained in:
1 parent
5b6adc0d7c
commit
4384aeaa98
2 files changed
+6
-4
No files matched your search
+6
-1
@@ -861,7 +861,12 @@ void startAdv(void)
|
||||
void loop()
|
||||
{
|
||||
// Skip if not connected and bleuart notification is enabled
|
||||
if ( !(Bluefruit.connected() && bleuart.notifyEnabled()) ) return;
|
||||
if ( !(Bluefruit.connected() && bleuart.notifyEnabled()) )
|
||||
{
|
||||
// go to low power mode since there is nothing to do
|
||||
waitForEvent();
|
||||
return;
|
||||
}
|
||||
|
||||
byte pin, analogPin;
|
||||
|
||||
|
||||
@@ -222,9 +222,6 @@ void loop()
|
||||
|
||||
// Only send update once per second
|
||||
delay(1000);
|
||||
|
||||
// No need to call waitForEvent() here, it will be invoked by
|
||||
// rtos_idle_callback() caused by above delay()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user