File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -276,15 +276,17 @@ func run(cmd *cobra.Command, args []string) {
276
276
277
277
// Copy .hex file to sketch folder
278
278
srcHex := paths .New (outputPath )
279
- dstHex := sketchPath .Join (sketch .Name + "." + fqbn + ext )
279
+ dstHex := paths .New (sketch .FullPath ).Join (sketch .Name + "." + fqbn + ext )
280
+ logrus .WithField ("from" , srcHex ).WithField ("to" , dstHex ).Print ("copying sketch build output" )
280
281
if err = srcHex .CopyTo (dstHex ); err != nil {
281
282
formatter .PrintError (err , "Error copying output file." )
282
283
os .Exit (commands .ErrGeneric )
283
284
}
284
285
285
286
// Copy .elf file to sketch folder
286
287
srcElf := paths .New (outputPath [:len (outputPath )- 3 ] + "elf" )
287
- dstElf := sketchPath .Join (sketch .Name + "." + fqbn + ".elf" )
288
+ dstElf := paths .New (sketch .FullPath ).Join (sketch .Name + "." + fqbn + ".elf" )
289
+ logrus .WithField ("from" , srcElf ).WithField ("to" , dstElf ).Print ("copying sketch build output" )
288
290
if err = srcElf .CopyTo (dstElf ); err != nil {
289
291
formatter .PrintError (err , "Error copying elf file." )
290
292
os .Exit (commands .ErrGeneric )
You can’t perform that action at this time.
0 commit comments