File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ const Connection: React.FC<ConnectionProps> = ({
542542
543543 if ( sampling_rate ) {
544544 setCurrentSamplingRate ( sampling_rate ) ;
545- sampingrateref . current = sampling_rate ;
545+ sampingrateref . current = sampling_rate ;
546546 }
547547
548548 return {
@@ -628,7 +628,7 @@ const Connection: React.FC<ConnectionProps> = ({
628628
629629 if ( deviceIndex !== - 1 ) {
630630 const savedChannels = savedPorts [ deviceIndex ] . selectedChannels ;
631- }
631+ }
632632
633633 baudRate = savedDevice ?. baudRate || 230400 ;
634634 serialTimeout = savedDevice ?. serialTimeout || 2000 ;
@@ -714,9 +714,8 @@ const Connection: React.FC<ConnectionProps> = ({
714714 console . error ( "Readable stream not available" ) ;
715715 }
716716
717-
717+ setSelectedChannels ( initialSelectedChannelsRef . current ) ;
718718 Connection ( true ) ;
719- setSelectedChannels ( selectedChannels )
720719 setIsDeviceConnected ( true ) ;
721720 onPauseChange ( true ) ;
722721 setIsDisplay ( true ) ;
@@ -897,7 +896,7 @@ const Connection: React.FC<ConnectionProps> = ({
897896 filter . setbits ( sampingrateref . current ) ; // Set the bits value for all instances
898897 } ) ;
899898 EXGFilters . forEach ( ( filter ) => {
900- filter . setbits ( detectedBitsRef . current . toString ( ) , sampingrateref . current ) ; // Set the bits value for all instances
899+ filter . setbits ( detectedBitsRef . current . toString ( ) , sampingrateref . current ) ; // Set the bits value for all instances
901900 } ) ;
902901 try {
903902 while ( isDeviceConnectedRef . current ) {
You can’t perform that action at this time.
0 commit comments