Browse Source

allow overriding main loop poll

Thomas Buck 1 year 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
 	cyw43_arch_deinit();
603
 	cyw43_arch_deinit();
604
 }
604
 }
605
 
605
 
606
+void __attribute__((weak)) picowota_poll(void)
607
+{
608
+	cyw43_arch_poll();
609
+}
610
+
606
 int main()
611
 int main()
607
 {
612
 {
608
 	err_t err;
613
 	err_t err;
678
 			};
683
 			};
679
 		}
684
 		}
680
 
685
 
681
-		cyw43_arch_poll();
686
+		picowota_poll();
682
 	}
687
 	}
683
 
688
 
684
 	picowota_network_deinit();
689
 	picowota_network_deinit();

Loading…
Cancel
Save