File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -345,8 +345,8 @@ function Control({
345345
346346 const data = await response . text ( ) ;
347347 if ( ! isCancelled ) {
348- setTickState ( data . split ( ',' ) [ 0 ] ) ;
349- setNumLaps ( data . split ( ',' ) [ 1 ] ) ;
348+ setTickState ( data . split ( "," ) [ 0 ] ) ;
349+ setNumLaps ( data . split ( "," ) [ 1 ] ) ;
350350 }
351351 } catch ( error ) {
352352 console . error ( "Error fetching tick state:" , error ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export async function pullTelemetry(
3434 setPixhawkBatteryVal : Dispatch < SetStateAction < Parameter > > ,
3535 setESCtemperatureVal : Dispatch < SetStateAction < Parameter > > ,
3636 setSuperSecret : Dispatch < SetStateAction < boolean > > ,
37- setFlightMode : Dispatch < SetStateAction < string > >
37+ setFlightMode : Dispatch < SetStateAction < string > > ,
3838) {
3939 const speedRequest = fetch ( "/api/plane/telemetry?id=74&field=groundspeed,airspeed,heading" )
4040 . then ( ( resp ) => resp . json ( ) )
@@ -147,4 +147,3 @@ export async function pullTelemetry(
147147 voltageRequest ,
148148 ] ) ;
149149}
150-
You can’t perform that action at this time.
0 commit comments