Skip to content
Snippets Groups Projects
Commit ab5d8f16 authored by Martin Vítek's avatar Martin Vítek
Browse files

Fixed binary shift

parent 3be453eb
Branches master
No related tags found
No related merge requests found
......@@ -236,12 +236,13 @@ namespace ENC28J60_namespace
uart.transmit_dec32(read_control_register(EPKTCNT));
uart.transmit_new_line();
//TODO: next_packet_pointer is not necessary
uint16_t next_packet_pointer;
uint32_t status_vector;
//Go to start of packet
write_control_register(ERDPTL, eth_rx_packet_start&0xFF);
write_control_register(ERDPTH, eth_rx_packet_start<<8);
write_control_register(ERDPTH, eth_rx_packet_start>>8);
read_buffer_memory(next_packet_pointer);
read_buffer_memory(status_vector);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment