#define PICO_W for Pico W board. Otherwise, compilation fail for Pico or runtime fail if compile as Pico W

pico-v0.1
alanbjohnston 4 years ago committed by GitHub
parent 5466e15431
commit 03caf868aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,6 +52,8 @@ char payload_str[100];
WiFiServer server(port);
WiFiClient client;
// #define PICO_W // define if Pico W board. Otherwise, compilation fail for Pico or runtime fail if compile as Pico W
void setup() {
new_mode = mode;
@ -3157,6 +3159,12 @@ void client_print_string(char *string)
bool check_for_wifi() {
#ifndef PICO_W
return(false); // skip check if not Pico W board or compilation will fail
#endif
// stdio_init_all();
adc_init();

Loading…
Cancel
Save

Powered by TurnKey Linux.