* Update readme.

* updates

* Update and fix startup issues.
This commit is contained in:
Jas Singh
2024-12-20 22:40:41 -08:00
committed by GitHub
parent 0101f242e6
commit e4a5e8060e
4 changed files with 70 additions and 173 deletions

View File

@@ -11,7 +11,9 @@ import { bluetoothService } from 'src/lib/constants/services';
* @returns An array of available Bluetooth devices.
*/
export const getAvailableBluetoothDevices = (): AstalBluetooth.Device[] => {
const availableDevices = bluetoothService.devices
const bluetoothDevices = bluetoothService.get_devices() ?? [];
const availableDevices = bluetoothDevices
.filter((btDev) => btDev.name !== null)
.sort((a, b) => {
if (a.connected || a.paired) {

View File

@@ -69,7 +69,7 @@ const dedupeWAPs = (): AstalNetwork.AccessPoint[] => {
return [];
}
const WAPs = networkService.wifi.accessPoints;
const WAPs = networkService.wifi.get_access_points();
const dedupMap: Record<string, AstalNetwork.AccessPoint> = {};
WAPs.forEach((item: AstalNetwork.AccessPoint) => {