Skip to content

Commit ceb7ee1

Browse files
ndeadlyfincs
authored andcommitted
set: update SetSysBluetoothDevicesSettings with new fields found in recent firmwares
1 parent 0ba4f96 commit ceb7ee1

File tree

1 file changed

+6
-9
lines changed
  • nx/include/switch/services

1 file changed

+6
-9
lines changed

nx/include/switch/services/set.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ typedef struct {
312312
/// BluetoothDevicesSettings
313313
typedef struct {
314314
BtdrvAddress addr; ///< \ref BtdrvAddress
315-
BtmBdName name; ///< BdName. Unused on 13.0.0+
315+
BtmBdName name; ///< [1.0.0-12.1.0] BdName. On 13.0.0+ name2 is used instead.
316316
BtmClassOfDevice class_of_device; ///< ClassOfDevice
317317
u8 link_key[0x10]; ///< LinkKey
318318
u8 link_key_present; ///< LinkKeyPresent
@@ -328,14 +328,11 @@ typedef struct {
328328
u8 device_type; ///< DeviceType
329329
u16 brr_size; ///< BrrSize
330330
u8 brr[0x9]; ///< Brr
331-
union {
332-
u8 reserved[0x12B]; ///< Reserved [1.0.0-12.1.0]
333-
334-
struct {
335-
u8 pad; ///< Padding
336-
char name2[0xF9]; ///< Name
337-
}; ///< [13.0.0+]
338-
};
331+
u8 audio_source_volume; ///< [13.0.0+] AudioSourceVolume
332+
char name2[0xF9]; ///< [13.0.0+] Name
333+
u8 audio_sink_volume; ///< [15.0.0+] AudioSinkVolume
334+
u32 audio_flags; ///< [14.0.0+] AudioFlags
335+
u8 reserved[0x2C]; ///< Reserved
339336
} SetSysBluetoothDevicesSettings;
340337

341338
/// Structure returned by \ref setsysGetFirmwareVersion.

0 commit comments

Comments
 (0)