Skip to content

Commit

Permalink
nrf51: fix assertHandler function signature
Browse files Browse the repository at this point in the history
Not using the right signature led to a compiler crash.
The compiler should probably be fixed in this case (to report an error
instead), but this at least fixes the issue.
  • Loading branch information
aykevl authored and deadprogram committed Apr 15, 2021
1 parent 28f9f4e commit 10dcd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter_nrf51.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package bluetooth
#include "ble.h"
#include "ble_gap.h"
void assertHandler(void);
void assertHandler(uint32_t pc, uint16_t line_number, const uint8_t * p_file_name);
*/
import "C"

Expand Down

0 comments on commit 10dcd11

Please sign in to comment.