diff options
author | Evan Lojewski <github@meklort.com> | 2019-05-04 19:24:34 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-05-04 19:24:34 -0600 |
commit | b1adb232ee50fa1e936508f22adc6cafd6115339 (patch) | |
tree | 7b9e2993d22ea89457acc5f669691e449e631972 /libs/Network | |
parent | 59f8d0ac2cf869d4af63666b381a582a4c2d65ad (diff) | |
download | bcm5719-ortega-b1adb232ee50fa1e936508f22adc6cafd6115339.tar.gz bcm5719-ortega-b1adb232ee50fa1e936508f22adc6cafd6115339.zip |
Reset NCSI state on reloading firmware.
Diffstat (limited to 'libs/Network')
-rw-r--r-- | libs/Network/rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/Network/rx.c b/libs/Network/rx.c index 88f8bea..c8383df 100644 --- a/libs/Network/rx.c +++ b/libs/Network/rx.c @@ -154,9 +154,8 @@ bool Network_PassthroughRxPatcket(void) // int tailid = rxbuf.bits.Tail; int blockid = rxbuf.bits.Head; - do + while(count--) { - count--; // printf("Block at %x\n", blockid); RegRX_PORTIn_t* block = (RegRX_PORTIn_t*)&RX_PORT.In[RX_PORT_IN_ALL_BLOCK_WORDS * blockid]; // printf("Control %x\n", (uint32_t)block[0].r32); @@ -210,7 +209,7 @@ bool Network_PassthroughRxPatcket(void) blockid = control.bits.next_block; - } while(count); + } // Mark the register as read. rxbuf.r32 |= (1 << 31); |