From 48900dc5d428c3147de0cf0028f5fa7b6aee619e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 13 May 2017 23:38:21 +0200 Subject: [PATCH] cc256x: fix regression for MSP430 targets --- chipset/cc256x/btstack_chipset_cc256x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chipset/cc256x/btstack_chipset_cc256x.c b/chipset/cc256x/btstack_chipset_cc256x.c index 1b4f363fe..4c8bcc85f 100644 --- a/chipset/cc256x/btstack_chipset_cc256x.c +++ b/chipset/cc256x/btstack_chipset_cc256x.c @@ -161,6 +161,10 @@ static const uint8_t hci_route_sco_over_hci[] = { static void chipset_init(const void * config){ init_script_offset = 0; +#if defined(__GNUC__) && defined(__MSP430X__) && (__MSP430X__ > 0) + // On MSP430, custom init script is not supported + init_script_size = cc256x_init_script_size; +#else if (custom_init_script){ log_info("cc256x: using custom init script"); init_script = custom_init_script; @@ -170,6 +174,7 @@ static void chipset_init(const void * config){ init_script = cc256x_init_script; init_script_size = cc256x_init_script_size; } +#endif #ifdef ENABLE_SCO_OVER_HCI init_send_route_sco_over_hci = 1; #endif