소스 검색

Fix miscalculated buffer sizes

For the Pico DaynaPORT target, the debug buffer and the prefetch buffer
were not a power of 2 or multiple of 512 respectively. Fixing the values
in platformio.ini resolved a logging zululog.txt issue.
Morio 2 년 전
부모
커밋
aa879e35db
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      platformio.ini

+ 2 - 2
platformio.ini

@@ -165,8 +165,8 @@ build_flags =
     -DZULUSCSI_NETWORK
     -DZULUSCSI_DAYNAPORT
 ; These take a large portion of the SRAM and can be adjusted
-    -DLOGBUFSIZE=8138
-    -DPREFETCH_BUFFER_SIZE=8138
+    -DLOGBUFSIZE=8192
+    -DPREFETCH_BUFFER_SIZE=8192
     -DSCSI2SD_BUFFER_SIZE=57344
     ; This controls the depth of 2 x NETWORK_PACKET_MAX_SIZE (1520 bytes)
     ; For example a queue size of 10 would be 10 x 2 x 1520 = 30400 bytes