test public

Fork of Modbus by Cam Marshall

Files at this revision

API Documentation at this revision

Comitter:
TomTom83
Date:
Mon Jul 02 15:18:18 2018 +0000
Parent:
1:a3ee8cb24540
Commit message:
probl?mes d'adaptation

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jul 02 14:36:46 2018 +0000
+++ b/main.cpp	Mon Jul 02 15:18:18 2018 +0000
@@ -70,7 +70,12 @@
     {
         ( void )eMBPoll(  );
         
-         LwIP_Pkt_Handle();
+        if (ETH_CheckFrameReceived()) //Fonctions que j'essaye d'utiliser
+        { 
+            /* process received ethernet packet */
+            LwIP_Pkt_Handle(); //Traite le packet ethernet reçu
+        }
+         
                 
         /* Here we simply count the number of poll cycles. */
         usRegInputBuf[0]++;