fix most warnings with rp2040 -wconversion

This commit is contained in:
hathach
2022-06-27 11:50:17 +07:00
parent 0042eccb3b
commit b9dc9dbd78
48 changed files with 140 additions and 53 deletions

View File

@@ -259,7 +259,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
}
// first byte is length (including header), second byte is string type
_desc_str[0] = (TUSB_DESC_STRING << 8 ) | (2*chr_count + 2);
_desc_str[0] = (uint16_t) ((TUSB_DESC_STRING << 8 ) | (2*chr_count + 2));
return _desc_str;
}