Skip to content

Commit

Permalink
uint32_t system_rand(void *app)
Browse files Browse the repository at this point in the history
arg.rand expects uint32_t as return type. Example corrected to support uint32_t return type for system_rand function
  • Loading branch information
jbinko authored Dec 31, 2022
1 parent dcd36ce commit e42a3eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/doxygen/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern void enable_interrupts(void);
void app_handler(void *app, enum ldl_mac_response_type type, const union ldl_mac_response_arg *arg);

uint32_t system_ticks(void *app);
unsigned int system_rand(void *app);
uint32_t system_rand(void *app);

int main(void)
{
Expand Down Expand Up @@ -201,11 +201,11 @@ uint32_t system_ticks(void *app)
return 0;
}

unsigned int system_rand(void *app)
uint32_t system_rand(void *app)
{
(void)app;

return rand();
return (uint32_t)rand();
}

void dio0_rising_edge_isr(void)
Expand Down

0 comments on commit e42a3eb

Please sign in to comment.