Skip to content

Commit 102fd66

Browse files
committed
Fix W5500 example, reduce PlatformIO warning
1 parent f211dda commit 102fd66

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/Modules/W5500/Ethernet2.zip

65.1 KB
Binary file not shown.

examples/Modules/W5500/WebServer/WebServer.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*
2-
Web Server
3-
Need to install Ethernet2 arduino library
4-
If new arduino esp32 or make error, need go to c:\Program Files (x86)\Arduino\hardware\espressif\arduino-esp32\cores\esp32\Server.h
5-
Change virtual void begin(uint16_t port = 0) = 0; to virtual void begin() = 0;
6-
Other example can see https://github.com/adafruit/Ethernet2
7-
*/
1+
/**
2+
* Web Server
3+
* Need to install Ethernet2 arduino library
4+
* Please don`t install it by arduino library manange
5+
* If install, delete it
6+
* Ethernet2 file in M5stack lib examples -> modules -> W5500 -> Ethernet2.zip
7+
*/
88
#include <M5Stack.h>
99
#include <SPI.h>
1010
#include <Ethernet2.h>

src/utility/MPU9250.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@
245245
void initMPU9250();
246246
void calibrateMPU9250(float * gyroBias, float * accelBias);
247247
void MPU9250SelfTest(float * destination);
248-
void writeByte(uint8_t, uint8_t, uint8_t) __attribute__ ((deprecated));
249-
uint8_t readByte(uint8_t, uint8_t) __attribute__ ((deprecated));
250-
void readBytes(uint8_t, uint8_t, uint8_t, uint8_t *) __attribute__ ((deprecated));
248+
void writeByte(uint8_t, uint8_t, uint8_t);
249+
uint8_t readByte(uint8_t, uint8_t);
250+
void readBytes(uint8_t, uint8_t, uint8_t, uint8_t *);
251251
}; // class MPU9250
252252

253253
#endif // _MPU9250_H_

0 commit comments

Comments
 (0)