From 10dcd116e80e30b71a5581a21d40fb33ad4d7793 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 14 Apr 2021 17:15:48 +0200 Subject: [PATCH] nrf51: fix assertHandler function signature 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. --- adapter_nrf51.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter_nrf51.go b/adapter_nrf51.go index 58b665d..b706f6d 100644 --- a/adapter_nrf51.go +++ b/adapter_nrf51.go @@ -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"