better names
This commit is contained in:
parent
b21ab82d99
commit
32b724dba7
|
@ -159,10 +159,10 @@ static THD_FUNCTION(btThreadEntryPoint, arg) {
|
||||||
chThdExit(MSG_OK);
|
chThdExit(MSG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bluetoothStart(ts_channel_s *tsChan, bluetooth_module_e moduleType, const char *baudRate, const char *name, const char *pinCode) {
|
void bluetoothStart(ts_channel_s *btChan, bluetooth_module_e moduleType, const char *baudRate, const char *name, const char *pinCode) {
|
||||||
static const char *usage = "Usage: bluetooth_hc06 <baud> <name> <pincode>";
|
static const char *usage = "Usage: bluetooth_hc06 <baud> <name> <pincode>";
|
||||||
|
|
||||||
tsChannel = tsChan;
|
tsChannel = btChan;
|
||||||
|
|
||||||
// if a binary protocol uses USB, we cannot init the bluetooth module!
|
// if a binary protocol uses USB, we cannot init the bluetooth module!
|
||||||
if (!CONFIG(useSerialPort)) {
|
if (!CONFIG(useSerialPort)) {
|
||||||
|
|
|
@ -30,7 +30,7 @@ typedef enum {
|
||||||
* - send AT-commands to the module;
|
* - send AT-commands to the module;
|
||||||
* - restore connection to PC.
|
* - restore connection to PC.
|
||||||
*/
|
*/
|
||||||
void bluetoothStart(ts_channel_s *tsChannel, bluetooth_module_e moduleType, const char *baudRate, const char *name, const char *pinCode);
|
void bluetoothStart(ts_channel_s *btChannel, bluetooth_module_e moduleType, const char *baudRate, const char *name, const char *pinCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel Bluetooth procedure
|
* Cancel Bluetooth procedure
|
||||||
|
|
Loading…
Reference in New Issue