File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -883,9 +883,9 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
883883 var connectedStDfuDevices = StmDfuDevice . ListDevices ( ) ;
884884 var connectedStJtagDevices = StmJtagDevice . ListDevices ( ) ;
885885
886- if ( o . BinFile . Any ( ) &&
887- o . HexFile . Any ( ) &&
888- connectedStDfuDevices . Count != 0 )
886+ if ( connectedStDfuDevices . Count != 0 &&
887+ ( o . BinFile . Any ( ) ||
888+ o . HexFile . Any ( ) ) )
889889 {
890890
891891 #region STM32 DFU options
@@ -940,11 +940,9 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
940940 #endregion
941941
942942 }
943- else if (
944- o . BinFile . Any ( ) &&
945- o . HexFile . Any ( ) &&
946- connectedStJtagDevices . Count != 0
947- )
943+ else if ( connectedStJtagDevices . Count != 0 &&
944+ ( o . BinFile . Any ( ) ||
945+ o . HexFile . Any ( ) ) )
948946 {
949947 // this has to be a JTAG connected device
950948
You can’t perform that action at this time.
0 commit comments