Unverified Commit 0ef026cf authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Avoid spurious -O3 warning (#770)

Fixes #768
parent 5787b4c0
...@@ -50,7 +50,9 @@ enum SeekMode { ...@@ -50,7 +50,9 @@ enum SeekMode {
class File : public Stream { class File : public Stream {
public: public:
File(FileImplPtr p = FileImplPtr(), FS *baseFS = nullptr) : _p(p), _fakeDir(nullptr), _baseFS(baseFS) { } File(FileImplPtr p = FileImplPtr(), FS *baseFS = nullptr) : _p(p), _fakeDir(nullptr), _baseFS(baseFS) {
_startMillis = millis(); /* workaround -O3 spurious warning #768 */
}
// Print methods: // Print methods:
size_t write(uint8_t) override; size_t write(uint8_t) override;
......
...@@ -38,7 +38,7 @@ for normal operations. ...@@ -38,7 +38,7 @@ for normal operations.
Generic RP2040 Support Generic RP2040 Support
---------------------- ----------------------
If your RP2040 board isn't in the menus you can still use it with the If your RP2040 board isn't in the menus you can still use it with the
IDE bu using the `Board->Generic RP2040` menu option. You will need to IDE by using the `Board->Generic RP2040` menu option. You will need to
then set the flash size (see above) and tell the IDE how to communicate then set the flash size (see above) and tell the IDE how to communicate
with the flash chip using the `Tools->Boot Stage 2` menu. with the flash chip using the `Tools->Boot Stage 2` menu.
......
...@@ -5,7 +5,7 @@ The Arduino-Pico core can be installed using the Arduino IDE Boards Manager ...@@ -5,7 +5,7 @@ The Arduino-Pico core can be installed using the Arduino IDE Boards Manager
or using `git`. If you want to simply write programs for your RP2040 board, or using `git`. If you want to simply write programs for your RP2040 board,
the Boards Manager installation will suffice, but if you want to try the the Boards Manager installation will suffice, but if you want to try the
latest pre-release versions and submit improvements, you will need the `git` latest pre-release versions and submit improvements, you will need the `git`
instllation. installation.
Installing via Arduino Boards Manager Installing via Arduino Boards Manager
------------------------------------- -------------------------------------
......
WiFi (Raspberry Pi Pico W) Support WiFi (Raspberry Pi Pico W) Support
================================== ==================================
WiFi is supported on the Raspberry Pi Pico W by selecting the "Raspbery Pi Pico W" board in the Boards Manager. It is generally compatible with the `Arduino WiFi library <https://www.arduino.cc/en/Reference/WiFi>`__ and the `ESP8266 Arduino WiFi library <https://github.com/esp8266/Arduino>`__. WiFi is supported on the Raspberry Pi Pico W by selecting the "Raspberry Pi Pico W" board in the Boards Manager. It is generally compatible with the `Arduino WiFi library <https://www.arduino.cc/en/Reference/WiFi>`__ and the `ESP8266 Arduino WiFi library <https://github.com/esp8266/Arduino>`__.
Enable WiFi support by selecting the `Raspberry Pi Pico W` board in the IDE and adding ``#include <WiFi.h>`` in your sketch. Enable WiFi support by selecting the `Raspberry Pi Pico W` board in the IDE and adding ``#include <WiFi.h>`` in your sketch.
......
...@@ -74,7 +74,7 @@ public: ...@@ -74,7 +74,7 @@ public:
return write((uint32_t)s); return write((uint32_t)s);
} }
// Write 32 bit value to port, user responsbile for packing/alignment, etc. // Write 32 bit value to port, user responsible for packing/alignment, etc.
size_t write(int32_t val, bool sync); size_t write(int32_t val, bool sync);
// Write sample to I2S port, will block until completed // Write sample to I2S port, will block until completed
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
size_t write24(int32_t l, int32_t r); // Note that 24b must have values left-aligned (i.e. 0xABCDEF00) size_t write24(int32_t l, int32_t r); // Note that 24b must have values left-aligned (i.e. 0xABCDEF00)
size_t write32(int32_t l, int32_t r); size_t write32(int32_t l, int32_t r);
// Read 32 bit value to port, user responsbile for packing/alignment, etc. // Read 32 bit value to port, user responsible for packing/alignment, etc.
size_t read(int32_t *val, bool sync); size_t read(int32_t *val, bool sync);
// Read samples from I2S port, will block until data available // Read samples from I2S port, will block until data available
......
...@@ -1100,7 +1100,7 @@ protected: ...@@ -1100,7 +1100,7 @@ protected:
}; };
public: public:
uint16_t m_u16ID; // Query ID (used only in lagacy queries) uint16_t m_u16ID; // Query ID (used only in legacy queries)
stcMDNS_RRQuestion* m_pQuestions; // A list of queries stcMDNS_RRQuestion* m_pQuestions; // A list of queries
uint8_t m_u8HostReplyMask; // Flags for reply components/answers uint8_t m_u8HostReplyMask; // Flags for reply components/answers
bool m_bLegacyQuery; // Flag: Legacy query bool m_bLegacyQuery; // Flag: Legacy query
......
...@@ -1980,7 +1980,7 @@ uint8_t MDNSResponder::_replyMaskForHost(const MDNSResponder::stcMDNS_RRHeader& ...@@ -1980,7 +1980,7 @@ uint8_t MDNSResponder::_replyMaskForHost(const MDNSResponder::stcMDNS_RRHeader&
#ifdef MDNS_IP6_SUPPORT #ifdef MDNS_IP6_SUPPORT
// TODO // TODO
#endif #endif
} // Address qeuest } // Address quest
stcMDNS_RRDomain hostDomain; stcMDNS_RRDomain hostDomain;
if ((_buildDomainForHost(m_pcHostname, hostDomain)) if ((_buildDomainForHost(m_pcHostname, hostDomain))
......
...@@ -1224,7 +1224,7 @@ bool WiFiClientSecureCtx::_connectSSL(const char* hostName) { ...@@ -1224,7 +1224,7 @@ bool WiFiClientSecureCtx::_connectSSL(const char* hostName) {
_x509_insecure = nullptr; _x509_insecure = nullptr;
_x509_knownkey = nullptr; _x509_knownkey = nullptr;
// reduce timeout after successful handshake to fail fast if server stop accepting our data for whathever reason // reduce timeout after successful handshake to fail fast if server stop accepting our data for whatever reason
if (ret) { if (ret) {
_timeout = 5000; _timeout = 5000;
} }
......
...@@ -43,7 +43,7 @@ extern "C" { ...@@ -43,7 +43,7 @@ extern "C" {
#define WL_IPV4_LENGTH 4 #define WL_IPV4_LENGTH 4
// Maximum size of a SSID list // Maximum size of a SSID list
#define WL_NETWORKS_LIST_MAXNUM 10 #define WL_NETWORKS_LIST_MAXNUM 10
// Maxmium number of socket // Maximum number of socket
#define WIFI_MAX_SOCK_NUM 10 #define WIFI_MAX_SOCK_NUM 10
// Socket not available constant // Socket not available constant
#define SOCK_NOT_AVAIL 255 #define SOCK_NOT_AVAIL 255
......
/* Simple sketch to do something on a BOOTSEL press */ /* Simple sketch to do something on a BOOTSEL press */
/* Releaed into the public domain */ /* Released into the public domain */
void setup() { void setup() {
Serial.begin(115200); Serial.begin(115200);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment