Skip to content
Permalink
Browse files

test/usb: fix pointer type mismatch

The 4th argument of usb_dc_ep_write() should be a u32_t* not a size_t*.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
  • Loading branch information...
Nicolas Pitre authored and nashif committed Jul 3, 2019
1 parent 45eb589 commit 6455ddbd4efd8e57276c32edd53e455e0c8d2f1f
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/subsys/usb/device/src/main.c
@@ -116,7 +116,7 @@ static void test_usb_dc_api(void)
/* Test USB Device Cotnroller API for invalid parameters */
static void test_usb_dc_api_invalid(void)
{
size_t size;
u32_t size;
u8_t byte;

/* Set stall to invalid EP */
@@ -175,7 +175,7 @@ static void test_usb_dc_api_invalid(void)

static void test_usb_dc_api_read_write(void)
{
size_t size;
u32_t size;
u8_t byte;

/* Read invalid EP */

0 comments on commit 6455ddb

Please sign in to comment.
You can’t perform that action at this time.