Skip to content

Commit e220fa3

Browse files
committed
Delete ethernetISR
1 parent 9a7dbc6 commit e220fa3

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Firmware/RTK_Everywhere/Ethernet.ino

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,6 @@ bool ethernetIsNeeded()
208208
return needed;
209209
}
210210

211-
/*
212-
// Ethernet (W5500) ISR
213-
// Triggered by the falling edge of the W5500 interrupt signal - indicates the arrival of a packet
214-
// Record the time the packet arrived
215-
void ethernetISR()
216-
{
217-
// Don't check or clear the interrupt here -
218-
// it may clash with a GNSS SPI transaction and cause a wdt timeout.
219-
// Do it in updateEthernet
220-
gettimeofday((timeval *)&ethernetNtpTv, nullptr); // Record the time of the NTP interrupt
221-
}
222-
*/
223-
224211
// Restart the Ethernet controller
225212
void ethernetRestart()
226213
{

Firmware/RTK_Everywhere/NTP.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ bool ntpProcessOneRequest(bool process, const timeval *recTv, const timeval *syn
502502

503503
if (packetDataSize > 0)
504504
{
505-
gettimeofday((timeval *)&ethernetNtpTv, nullptr); // Record the possible time of the NTP request
505+
gettimeofday((timeval *)&ethernetNtpTv, nullptr); // Record the time of the NTP request. This was in ethernetISR()
506506

507507
IPAddress remoteIP = ntpServer->remoteIP();
508508
uint16_t remotePort = ntpServer->remotePort();

0 commit comments

Comments
 (0)