File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,12 +240,12 @@ func runProgramAction(pm *packagemanager.PackageManager,
240
240
if ! burnBootloader {
241
241
if importFile != "" {
242
242
importFilePath := paths .New (importFile )
243
- importFilePath .ToAbs ()
244
243
importPath = importFilePath .Parent ()
244
+ // In general, the binary file extension (like .bin or .hex or even .zip) are already written explicitly in
245
+ // the core recipes. This why the CLI removes it before setting the build.project_name property.
246
+ importFileName := strings .ReplaceAll (importFilePath .Base (), importFilePath .Ext (), "" )
245
247
uploadProperties .SetPath ("build.path" , importPath )
246
- uploadProperties .Set ("build.project_name" , importFilePath .Base ())
247
- feedback .Printf ("build.path %s" , importPath .String ())
248
- feedback .Printf ("build.project_name %s" , importFilePath .Base ())
248
+ uploadProperties .Set ("build.project_name" , importFileName )
249
249
} else {
250
250
if sketch == nil {
251
251
return fmt .Errorf (("no sketch specified" ))
You can’t perform that action at this time.
0 commit comments