AP_Networking: fixed off by one error in cache size calculation
this caused some of the memory to be cacheable which led to TCP checksum errors
This commit is contained in:
parent
0d9c658a1e
commit
55b5e1cff1
@ -37,7 +37,7 @@ bool AP_Networking_ChibiOS::allocate_buffers()
|
||||
sizeof(uint32_t)*STM32_MAC_TRANSMIT_BUFFERS*AP_NETWORKING_EXTERN_MAC_BUFFER_SIZE; // typically == 9240
|
||||
|
||||
// ensure that we allocate 32-bit aligned memory, and mark it non-cacheable
|
||||
uint32_t size = 2;
|
||||
uint32_t size = 1;
|
||||
uint8_t rasr = 0;
|
||||
// find size closest to power of 2
|
||||
while (size < total_size) {
|
||||
|
Loading…
Reference in New Issue
Block a user