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/MulticastDiscovery/fgmc_protocol.h')
-rw-r--r--src/Networking/MulticastDiscovery/fgmc_protocol.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Networking/MulticastDiscovery/fgmc_protocol.h b/src/Networking/MulticastDiscovery/fgmc_protocol.h
index 83c39b23..0a3faece 100644
--- a/src/Networking/MulticastDiscovery/fgmc_protocol.h
+++ b/src/Networking/MulticastDiscovery/fgmc_protocol.h
@@ -87,8 +87,7 @@ private:
FGMCHwTypeId fgmc_device_id_;
uint32_t fgmc_application_type_;
- uint8_t tx_netbuf_[SIZE_FGMC_RES_MAX];
-
+ // struct to hold per-interface data
struct InterfaceData
{
char unique_id_[SIZE_FGMC_DEST_ID];
@@ -101,14 +100,13 @@ private:
/// insert used packet-id
/// \param packetId packedId
- void insertPacketId(uint32_t packetId) noexcept;
-
- /// check if packet id is already used
- /// \param packetId packedId
- bool isPacketInBuffer(uint32_t packetId) noexcept;
+ /// \return true if inserted, false if it was already used
+ bool insertPacketId(uint32_t packetId) noexcept;
};
+
InterfaceData ifaceData[IP_MAX_IFACES];
+ uint8_t tx_netbuf_[SIZE_FGMC_RES_MAX];
};
#endif // SUPPORT_MULTICAST_DISCOVERY