Skip to content

Commit a085a14

Browse files
committed
fixes
1 parent 6958d3c commit a085a14

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useCallback, useRef, useMemo, useEffect } from 'preact/hooks';
1+
import { useState, useCallback, useRef, useMemo } from 'preact/hooks';
22
import type { Definition, Parameter } from './types';
33
import { FileLoader } from './components/FileLoader';
44
import { XdfLoader } from './components/XdfLoader';

src/components/BLEConnector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export function BLEConnector({ onLogData, onClose, vehicleSettings }: BLEConnect
500500
const [mtu, setMtu] = useState(512); // Expected MTU after firmware fix
501501
const [currentFrame, setCurrentFrame] = useState<LogFrame | null>(null);
502502
const [gpsEnabled, setGpsEnabled] = useState(false);
503-
const [gpsAvailable, setGpsAvailable] = useState(!!navigator.geolocation);
503+
const gpsAvailable = !!navigator.geolocation;
504504
const serviceRef = useRef<BLEService | null>(null);
505505

506506
async function connect() {

0 commit comments

Comments
 (0)