summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <thach@tinyusb.org>2018-08-01 11:31:32 +0700
committerhathach <thach@tinyusb.org>2018-08-01 11:31:32 +0700
commit592c190069d1b3b3cd3722bbe278f1d4998764f4 (patch)
tree1eed6fb17eea3f406494b4cdc93666d47f18f5b8
parent200669216ef0a4666a380e674f1d65318815bec7 (diff)
PR review clean up
-rw-r--r--ports/nrf/usb/usb_desc.c10
-rw-r--r--ports/nrf/usb/usb_msc_flash.c4
2 files changed, 8 insertions, 6 deletions
diff --git a/ports/nrf/usb/usb_desc.c b/ports/nrf/usb/usb_desc.c
index 3f64956d2..31f80b80d 100644
--- a/ports/nrf/usb/usb_desc.c
+++ b/ports/nrf/usb/usb_desc.c
@@ -88,22 +88,22 @@ uint16_t const * const string_desc_arr [] =
TUD_DESC_STRCONV('A','d','a','f','r','u','i','t',' ','I','n','d','u','s','t','r','i','e','s'),
// 2 Product
- TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','n','R','F','5','2'),
+ TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','n','R','F','5','2'),
// 3 Serials TODO use chip ID
TUD_DESC_STRCONV('1', '2', '3', '4', '5'),
// 4 CDC Interface
- TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','S','e','r','i','a','l'),
+ TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','S','e','r','i','a','l'),
// 5 MSC Interface
- TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','S','t','o','r','a','g','e'),
+ TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','S','t','o','r','a','g','e'),
// 6 HID Interface
- TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','H','I','D'),
+ TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','H','I','D'),
// Custom Interface
-// TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','C','u','s','t','o','m')
+// TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','C','u','s','t','o','m')
};
diff --git a/ports/nrf/usb/usb_msc_flash.c b/ports/nrf/usb/usb_msc_flash.c
index 384ef5578..2d0e9bec7 100644
--- a/ports/nrf/usb/usb_msc_flash.c
+++ b/ports/nrf/usb/usb_msc_flash.c
@@ -92,7 +92,9 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
}
// return len must not larger than bufsize
- if ( resplen > bufsize ) resplen = bufsize;
+ if ( resplen > bufsize ) {
+ resplen = bufsize;
+ }
// copy response to stack's buffer if any
if ( response && resplen ) {