瀏覽代碼

docs: minor typos and code cleanup

Eric Helgeson 1 年之前
父節點
當前提交
15cb8d9e6d
共有 4 個文件被更改,包括 8 次插入9 次删除
  1. 1 2
      lib/SCSI2SD/src/firmware/geometry.h
  2. 3 3
      lib/SCSI2SD/src/firmware/scsi.c
  3. 2 2
      platformio.ini
  4. 2 2
      src/BlueSCSI_Toolbox.cpp

+ 1 - 2
lib/SCSI2SD/src/firmware/geometry.h

@@ -18,8 +18,7 @@
 #define GEOMETRY_H
 
 #include "config.h"
-// TODO #include "sd.h"
-#define SD_SECTOR_SIZE 512
+#include "sd.h"
 
 typedef enum
 {

+ 3 - 3
lib/SCSI2SD/src/firmware/scsi.c

@@ -28,11 +28,11 @@
 #include "cdrom.h"
 // #include "debug.h"
 // #include "log.h"
+#include "bluescsi_toolbox.h"
+#include "mo.h"
 #include "network.h"
 #include "tape.h"
-#include "mo.h"
 #include "vendor.h"
-#include "bluescsi_toolbox.h"
 
 #include <string.h>
 
@@ -546,7 +546,7 @@ static void process_Command()
 			// Newer initiators won't be specifying 0 anyway.
 			if (allocLength == 0) allocLength = 4;
 
-			// If we receve a stand alone REQUEST SENSE to a bad LUN we still need to respond
+			// If we receive a stand-alone REQUEST SENSE to a bad LUN we still need to respond
 			// with LUN not supported. SCSI-2 Spec 7.5.3.
 			if (scsiDev.lun && scsiDev.lastStatus != CHECK_CONDITION)
 			{

+ 2 - 2
platformio.ini

@@ -49,8 +49,8 @@ build_flags =
     ; -DSCSI2SD_BUFFER_SIZE=57344
 
 ; Experimental Audio build
-; Rquires seperate hardware and overclock. 
-; For expermeination only, do not use.
+; Requires separate hardware and overclock.
+; For experimentation only, do not use.
 [env:BlueSCSI_Pico_Audio]
 extends = env:BlueSCSI_Pico
 build_flags =

+ 2 - 2
src/BlueSCSI_Toolbox.cpp

@@ -200,7 +200,7 @@ void onSetNextCD(const char * img_dir)
     cdromSwitch(img, full_path);
 }
 
-FsFile gFile; // global so we can keep it open while transfering.
+FsFile gFile; // global so we can keep it open while transferring.
 void onGetFile10(char * dir_name) {
     uint8_t index = scsiDev.cdb[1];
 
@@ -232,7 +232,7 @@ void onGetFile10(char * dir_name) {
 }
 
 /*
-  Prepares a file for receving. The file name is null terminated in the scsi data.
+  Prepares a file for receiving. The file name is null terminated in the scsi data.
 */
 void onSendFilePrep(char * dir_name)
 {