Skip to content

Commit 4d79440

Browse files
aescolarnashif
authored andcommitted
tests zbus async_listeners: Fix bug in test
Fix a bug in the test which caused it to fail (depending on compiler, platform and optimization level). Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 1d6e0d5 commit 4d79440

File tree

1 file changed

+1
-1
lines changed
  • tests/subsys/zbus/async_listeners/src

1 file changed

+1
-1
lines changed

tests/subsys/zbus/async_listeners/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void isr_burst_handler(const void *message)
5858
const struct msg_ping *msg = message;
5959

6060
for (int i = 0; i < CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_POOL_SIZE; ++i) {
61-
int err = zbus_chan_pub(&chan_ping, &msg, K_NO_WAIT);
61+
int err = zbus_chan_pub(&chan_ping, msg, K_NO_WAIT);
6262

6363
if (err) {
6464
break;

0 commit comments

Comments
 (0)