File tree Expand file tree Collapse file tree 2 files changed +15
-17
lines changed
Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 77 "test" : " test"
88 },
99 "dependencies" : {
10- "bs2-serial" : " jacobrosenthal/bs2-serial " ,
10+ "bs2-serial" : " ^0.2.0 " ,
1111 "codemirror" : " ^4.13.0" ,
1212 "frylord" : " ^0.5.0" ,
1313 "holovisor" : " ^0.2.0" ,
Original file line number Diff line number Diff line change @@ -75,22 +75,20 @@ const FileOperations = React.createClass({
7575 return ;
7676 }
7777
78- when . all ( [
79- programmer . getRevisions ( ) ,
80- programmer . compile ( { source : space . current . deref ( ) } )
81- ] ) . spread ( function ( revs , memory ) {
82- var options = {
83- path : devicePath ,
84- board : revs . bs2 ,
85- memory : memory
86- } ;
87-
88- return programmer . bootload ( options ) ;
89- } )
90- . tap ( ( ) => toast . clear ( ) )
91- . tap ( ( ) => this . handleSuccess ( `'${ name } ' downloaded successfully` ) )
92- . catch ( this . handleError )
93- . finally ( overlay . hide ) ;
78+ programmer . compile ( { source : space . current . deref ( ) } )
79+ . then ( function ( memory ) {
80+ var options = {
81+ path : devicePath ,
82+ board : 'bs2' ,
83+ memory : memory
84+ } ;
85+
86+ return programmer . bootload ( options ) ;
87+ } )
88+ . tap ( ( ) => toast . clear ( ) )
89+ . tap ( ( ) => this . handleSuccess ( `'${ name } ' downloaded successfully` ) )
90+ . catch ( this . handleError )
91+ . finally ( overlay . hide ) ;
9492 } ,
9593 renderOverlay : function ( component ) {
9694 const overlay = this . props . overlay ;
You can’t perform that action at this time.
0 commit comments