Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Networking/ESP8266WiFi/WiFiInterface.h')
-rw-r--r--src/Networking/ESP8266WiFi/WiFiInterface.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Networking/ESP8266WiFi/WiFiInterface.h b/src/Networking/ESP8266WiFi/WiFiInterface.h
index 5776f1e6..42a41f9b 100644
--- a/src/Networking/ESP8266WiFi/WiFiInterface.h
+++ b/src/Networking/ESP8266WiFi/WiFiInterface.h
@@ -32,6 +32,18 @@ private:
uint32_t padding;
};
+struct MessageBufferOut
+{
+ MessageHeaderSamToEsp hdr;
+ uint8_t data[MaxDataLength]; // data to send
+};
+
+struct alignas(16) MessageBufferIn
+{
+ MessageHeaderEspToSam hdr;
+ uint8_t data[MaxDataLength]; // data to send
+};
+
// The main network class that drives the network.
class WiFiInterface : public NetworkInterface
{
@@ -123,18 +135,6 @@ private:
bool lastDataReadyPinState;
uint8_t risingEdges;
- struct MessageBufferOut
- {
- MessageHeaderSamToEsp hdr;
- uint8_t data[MaxDataLength]; // data to send
- };
-
- struct alignas(16) MessageBufferIn
- {
- MessageHeaderEspToSam hdr;
- uint8_t data[MaxDataLength]; // data to send
- };
-
MessageBufferOut *bufferOut;
MessageBufferIn *bufferIn;