8000 PR review clean up · sparkfun/circuitpython@592c190 · GitHub
[go: up one dir, main page]

Skip to content

Commit 592c190

Browse files
committed
PR review clean up
1 parent 2006692 commit 592c190

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

ports/nrf/usb/usb_desc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,22 @@ uint16_t const * const string_desc_arr [] =
8888
TUD_DESC_STRCONV('A','d','a','f','r','u','i','t',' ','I','n','d','u','s','t','r','i','e','s'),
8989

9090
// 2 Product
91-
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','n','R','F','5','2'),
91+
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','n','R','F','5','2'),
9292

9393
// 3 Serials TODO use chip ID
9494
TUD_DESC_STRCONV('1', '2', '3', '4', '5'),
9595

9696
// 4 CDC Interface
97-
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','S','e','r','i','a','l'),
97+
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','S','e','r','i','a','l'),
9898

9999
// 5 MSC Interface
100-
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','S','t','o','r','a','g','e'),
100+
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','S','t','o','r','a','g','e'),
101101

102102
// 6 HID Interface
103-
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','H','I','D'),
103+
TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','H','I','D'),
104104

105105
// Custom Interface
106-
// TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','Y',' ','C','u','s','t','o','m')
106+
// TUD_DESC_STRCONV('C','i','r','c','u','i','t','P','y',' ','C','u','s','t','o','m')
107107
};
108108

109109

ports/nrf/usb/usb_msc_flash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
9292
}
9393

9494
// return len must not larger than bufsize
95-
if ( resplen > buf 5951 size ) resplen = bufsize;
95+
if ( resplen > bufsize ) {
96+
resplen = bufsize;
97+
}
9698

9799
// copy response to stack's buffer if any
98100
if ( response && resplen ) {

0 commit comments

Comments
 (0)
0