Changeset 18183 for firmware


Ignore:
Timestamp:
May 29, 2015, 12:17:51 AM (4 years ago)
Author:
dneise
Message:
removing unneeded repeated reading
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FSC/src/FSC.c

    r17634 r18183  
    5656        // checks if socket is okay and resets in case of problem the W5100
    5757        rc=w5100_caretaker();
    58         if ( rc != 0x17 && rc != 0x14
     58        if ( rc != SR_SOCK_ESTABLISHED && rc != SR_SOCK_LISTEN
    5959        {
    6060            // something is not okay with the ethernet ...
     
    6464        if ( (gVolReg.time_ms % W5100_INPUT_CHECK_TIME == 0) && (w5100_ready) ) {
    6565            if ( (eth_red_bytes = get_S0_RX_RSR()) != 0) {
    66                 for (U08 rep=0; rep<1; ) {
    67                     if (eth_red_bytes == get_S0_RX_RSR() ) {
    68                         rep++;
    69                     }
    70                     else {
    71                         eth_red_bytes =get_S0_RX_RSR();
    72                     }
    73                 }
    7466                //parse_w5300_incoming( w5100_get_RX(ETH_READ_BUFFER_SIZE, true) );
    7567            }
Note: See TracChangeset for help on using the changeset viewer.