-
-
Notifications
You must be signed in to change notification settings - Fork 150
Programmer #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmer #128
Conversation
✅ Build completed. Download at http://downloads.arduino.cc/CreateBridge/CreateBridge-PR156.zip |
programmer/programmer_test.go
Outdated
}{ | ||
{ | ||
"leonardo", "/dev/ttyACM0", | ||
`"~/.arduino-create/avrdude/6.3.0-arduino6/bin/avrdude" "-C~/.arduino-create/avrdude/6.3.0-arduino6/etc/avrdude.conf" -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D "-Uflash:w:./programmer_test.hex:i"`, programmer.Extra{Use1200bpsTouch: true, WaitForUploadPort: true}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use $HOME instead of ~ that is a bashism.
programmer/programmer_test.go
Outdated
home, _ := homedir.Dir() | ||
|
||
for _, test := range TestSerialData { | ||
commandline := strings.Replace(test.Commandline, "~", home, -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here?!
✅ Build completed. Download at http://downloads.arduino.cc/CreateBridge/CreateBridge-PR157.zip |
✅ Build completed. Download at http://downloads.arduino.cc/CreateBridge/CreateBridge-PR159.zip |
✅ Build completed. Download at http://downloads.arduino.cc/CreateBridge/CreateBridge-PR160.zip |
✅ Build completed. Download at http://downloads.arduino.cc/CreateBridge/CreateBridge-PR161.zip |
Refactor of the programming capabilities of the agent in order to:
You can run the tests with
go test github.com/arduino/arduino-create-agent/programmer
and read the documentation at https://github.com/arduino/arduino-create-agent/blob/programmer/programmer/README.md