Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
garethpotter committed Nov 13, 2023
1 parent 97bafea commit 5766aa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/can/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <stdlib.h>
#include <stdlib.h>

#include <zephyr/ztest.h>

Expand All @@ -25,8 +25,8 @@ uint8_t *response;
size_t response_len;
int response_code;

static void isotp_fast_recv_cb(struct net_buf *buffer, int rem_len,
isotp_fast_msg_id sender_addr, void *arg)
static void isotp_fast_recv_cb(struct net_buf *buffer, int rem_len, isotp_fast_can_id rx_can_id,
void *arg)
{
response = malloc(buffer->len);
memcpy(response, buffer->data, buffer->len);
Expand Down Expand Up @@ -107,8 +107,8 @@ ZTEST(thingset_can, test_request_response)
.stmin = 0,
.flags = 0,
};
int err = isotp_fast_bind(&client_ctx, can_dev, 0x1800cc00, &opts, isotp_fast_recv_cb,
NULL, NULL, isotp_fast_sent_cb);
int err = isotp_fast_bind(&client_ctx, can_dev, 0x1800cc00, &opts, isotp_fast_recv_cb, NULL,
NULL, isotp_fast_sent_cb);
zassert_equal(err, 0, "bind fail");

uint8_t msg[] = { 0x01, 0x1e };
Expand Down

0 comments on commit 5766aa1

Please sign in to comment.