windows-h4: verify cc256x lm- subversion

This commit is contained in:
Matthias Ringwald 2016-12-19 15:35:15 +01:00
parent 5c7fd12999
commit c7e2dea5df

View File

@ -108,6 +108,12 @@ static void local_version_information_callback(uint8_t * packet){
break;
case COMPANY_ID_TEXAS_INSTRUMENTS_INC:
printf("Texas Instruments - CC256x compatible chipset.\n");
if (lmp_subversion != btstack_chipset_cc256x_lmp_subversion()){
printf("Error: LMP Subversion does not match initscript!");
printf("Your initscripts is for %s chipset\n", btstack_chipset_cc256x_lmp_subversion() < lmp_subversion ? "an older" : "a newer");
printf("Please update Makefile to include the appropriate bluetooth_init_cc256???.c file\n");
exit(10);
}
use_fast_uart();
hci_set_chipset(btstack_chipset_cc256x_instance());
#ifdef ENABLE_EHCILL