Showing 1 changed files with 4 additions and 4 deletions
+4 -4
BLE_iBeacon.ino
... ...
@@ -164,9 +164,6 @@ void setup() {
164 164
 }
165 165
 
166 166
 void loop() {
167
-  //PRG Button
168
-  pollPrg();
169
-  
170 167
   Serial.println("DeviceAddress: "+String(macStr));
171 168
 
172 169
   // Create the BLE Server
... ...
@@ -186,6 +183,9 @@ void loop() {
186 183
   ad_running = 0;
187 184
   DisplayButtonStatus();
188 185
   Serial.println("Advertizing stopped.");
189
-
186
+  
187
+  //PRG Button
188
+  pollPrg();
189
+  
190 190
   delay(BEACON_SLEEP_ADV);
191 191
 }