diff --git a/chipset/em9301/btstack_chipset_em9301.c b/chipset/em9301/btstack_chipset_em9301.c index 5ea39d72c..98a0d5689 100644 --- a/chipset/em9301/btstack_chipset_em9301.c +++ b/chipset/em9301/btstack_chipset_em9301.c @@ -83,7 +83,7 @@ static void chipset_set_bd_addr_command(bd_addr_t addr, uint8_t *hci_cmd_buffer) static void chipset_set_baudrate_command(uint32_t baudrate, uint8_t *hci_cmd_buffer){ // lookup baudrates int i; - int found; + int found = 0; for (i=0;i < sizeof(baudrates)/sizeof(uint32_t);i++){ if (baudrates[i] == baudrate){ found = i;