Skip to content

Commit ddc106d

Browse files
sebaszmpwielders
andauthored
[BluetoothControl] Forward fimware folder to config (#858)
Co-authored-by: Pierre Wielders <pierre@wielders.net>
1 parent 6f39d72 commit ddc106d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

BluetoothControl/BluetoothControl.conf.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ configuration.add("interface", "0")
66
configuration.add("port", "@PLUGIN_BLUETOOTH_PORT@")
77
configuration.add("baudrate", "@PLUGIN_BLUETOOTH_BAUDRATE@")
88

9+
if "@PLUGIN_BLUETOOTH_FIRMWARE_DIRECTORY@":
10+
configuration.add("firmware", "@PLUGIN_BLUETOOTH_FIRMWARE_DIRECTORY@")
11+
912
if "@PLUGIN_BLUETOOTH_NAME@":
1013
configuration.add("name", "@PLUGIN_BLUETOOTH_NAME@")
1114

BluetoothControl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ option(PLUGIN_BLUETOOTH_KERNEL_CONNECION_CONTROL "Enable kernel connection contr
3232
set(PLUGIN_BLUETOOTH_STARTMODE "Activated" CACHE STRING "Automatically start the plugin")
3333
set(PLUGIN_BLUETOOTH_PORT "/dev/ttyAMA0" CACHE STRING "Device port")
3434
set(PLUGIN_BLUETOOTH_BAUDRATE 115200 CACHE STRING "Serial transmission speed in baud")
35+
set(PLUGIN_BLUETOOTH_FIRMWARE_DIRECTORY "/etc/firmware" CACHE STRING "Chip firmware folder")
3536
set(PLUGIN_BLUETOOTH_NAME "Thunder" CACHE STRING "Name of the local Bluetooth device")
3637
set(PLUGIN_BLUETOOTH_SHORT_NAME "Thunder" CACHE STRING "Short name of the local Bluetooth device")
3738
set(PLUGIN_BLUETOOTH_CLASS "0x000424" CACHE STRING "Class of the local Bluetooth device")

0 commit comments

Comments
 (0)