mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
btdrv: Updated params/docs for btdrvSetBleVisibility.
This commit is contained in:
parent
531f9d7921
commit
15a5d1c44f
@ -622,10 +622,10 @@ Result btdrvFinalizeBle(void);
|
|||||||
/**
|
/**
|
||||||
* @brief SetBleVisibility
|
* @brief SetBleVisibility
|
||||||
* @note Only available on [5.0.0+].
|
* @note Only available on [5.0.0+].
|
||||||
* @param[in] flag0 Unknown flag.
|
* @param[in] discoverable Whether the BLE device is discoverable.
|
||||||
* @param[in] flag1 Unknown flag.
|
* @param[in] connectable Whether the BLE device is connectable.
|
||||||
*/
|
*/
|
||||||
Result btdrvSetBleVisibility(bool flag0, bool flag1);
|
Result btdrvSetBleVisibility(bool discoverable, bool connectable);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SetLeConnectionParameter
|
* @brief SetLeConnectionParameter
|
||||||
|
@ -541,11 +541,11 @@ Result btdrvFinalizeBle(void) {
|
|||||||
return _btdrvCmdNoIO(49);
|
return _btdrvCmdNoIO(49);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result btdrvSetBleVisibility(bool flag0, bool flag1) {
|
Result btdrvSetBleVisibility(bool discoverable, bool connectable) {
|
||||||
if (hosversionBefore(5,0,0))
|
if (hosversionBefore(5,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _btdrvCmdTwoInBoolsNoOut(flag0, flag1, 50);
|
return _btdrvCmdTwoInBoolsNoOut(discoverable, connectable, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result btdrvSetLeConnectionParameter(const BtdrvLeConnectionParams *param) {
|
Result btdrvSetLeConnectionParameter(const BtdrvLeConnectionParams *param) {
|
||||||
|
Loading…
Reference in New Issue
Block a user