Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

SDK • Re: In code detect if running on Pico or PicoW

$
0
0
What about this one ?

cyw43_is_initialized
static bool cyw43_is_initialized (cyw43_t * self) [inline], [static]
Well spotted. Works perfectly on the Pico W, LED flashing, no hangs, with my code changed to -

Code:

bool WiFiIsAvailable(void) {    return cyw43_is_initialized(&cyw43_state);}
But, the same executable on the Pico never returns false, and throws up those "[CYW43] Failed to start CYW43" messages.

D'oh! : I might have to copy more in from the code I cloned so it doesn't leave things in an odd state which may be what's causing the Pico W to crash and burn. I've been too focused on making it work for the Pico !

Statistics: Posted by hippy — Wed Apr 23, 2025 5:42 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles