File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,7 @@ const uint8_t *USBCDC::configuration_desc(uint8_t index)
540
540
0x02 , // bInterfaceClass
541
541
0x02 , // bInterfaceSubClass
542
542
0x01 , // bInterfaceProtocol
543
- ( extraDescriptor != NULL ) ? 0x5 : 0x0 , // iInterface
543
+ static_cast < uint8_t >(( extraDescriptor != NULL ) ? 0x5 : 0x0 ) , // iInterface
544
544
545
545
// CDC Header Functional Descriptor, CDC Spec 5.2.3.1, Table 26
546
546
5 , // bFunctionLength
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ void arduino::MbedI2C::receiveThd() {
138
138
rxBuffer.clear ();
139
139
char buf[16 ];
140
140
while (1 ) {
141
- int c = slave->read (buf, sizeof (buf));
142
- for (int i = 0 ; i < c; i++) {
141
+ size_t c = slave->read (buf, sizeof (buf));
142
+ for (size_t i = 0 ; i < c; i++) {
143
143
rxBuffer.store_char (uint8_t (buf[i]));
144
144
}
145
145
if (c <= sizeof (buf)) {
You can’t perform that action at this time.
0 commit comments