Browse Source

allow overriding main loop poll

Thomas Buck 11 months ago
parent
commit
dd98bf6209
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      main.c

+ 6
- 1
main.c View File

@@ -603,6 +603,11 @@ void __attribute__((weak)) picowota_network_deinit()
603 603
 	cyw43_arch_deinit();
604 604
 }
605 605
 
606
+void __attribute__((weak)) picowota_poll(void)
607
+{
608
+	cyw43_arch_poll();
609
+}
610
+
606 611
 int main()
607 612
 {
608 613
 	err_t err;
@@ -678,7 +683,7 @@ int main()
678 683
 			};
679 684
 		}
680 685
 
681
-		cyw43_arch_poll();
686
+		picowota_poll();
682 687
 	}
683 688
 
684 689
 	picowota_network_deinit();

Loading…
Cancel
Save