Skip to content

Conversation

@phated
Copy link
Contributor

@phated phated commented Jul 17, 2015

What's this PR do?

Rewrites the source code if no matching BS2s are available but a different BS2 is and is selected. Then recompiles the source and programs the device.

What are the important parts of the code?

src/stores/documents needed an update method and to track the current filename so we could alter the source code without causing a change event on CodeMirror. src/stores/device is where the source code replacement is happening. Not sure if that is the best place for it but it works for the current implementation.

How should this be tested by the reviewer?

Create a new program but change the stamp directive to BS2e, connect your BS2, attempt to download. You should get the "No Matching Devices" message. Then, manually select the BS2, your source code should have the stamp directive change and your device will be programmed.

Is any other information necessary to understand this?

Also, note that this is a temp file changed and isn't saved to disk unless the user explicitly saves.

What are the relevant tickets? (Please add closes, refs, etc)

Closes #166

@phated phated added this to the Sprint 7 milestone Jul 17, 2015
2fast2fourier added a commit that referenced this pull request Jul 17, 2015
@2fast2fourier 2fast2fourier merged commit dfd7030 into master Jul 17, 2015
@2fast2fourier 2fast2fourier deleted the automaticDownloadNoMatch branch July 17, 2015 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic Download - No module types that match but alternative module available

4 participants