Found two "while" loops in the ENC28J60 driver where a timeout is needed to prevent a potential hang. These loops are waiting for an ENC28J60 transmit to complete. I'm not entirely sure that any hang ever occurred in the driver at this point, but as mentioned in another issue there is an occasional hang when performing code uploads. It is possible this is where it happens. I don't really have a way to validate this with certainty, but implementing a timeout is easy to add to the code.
Found two "while" loops in the ENC28J60 driver where a timeout is needed to prevent a potential hang. These loops are waiting for an ENC28J60 transmit to complete. I'm not entirely sure that any hang ever occurred in the driver at this point, but as mentioned in another issue there is an occasional hang when performing code uploads. It is possible this is where it happens. I don't really have a way to validate this with certainty, but implementing a timeout is easy to add to the code.