@@ -56,7 +56,6 @@ var Daemon = /*#__PURE__*/function () {
56
56
this . BOARDS_URL = boardsUrl ;
57
57
this . UPLOAD_NOPE = 'UPLOAD_NOPE' ;
58
58
this . UPLOAD_DONE = 'UPLOAD_DONE' ;
59
- this . CDC_RESET_DONE = 'CDC_RESET_DONE' ;
60
59
this . UPLOAD_ERROR = 'UPLOAD_ERROR' ;
61
60
this . UPLOAD_IN_PROGRESS = 'UPLOAD_IN_PROGRESS' ;
62
61
this . DOWNLOAD_DONE = 'DOWNLOAD_DONE' ;
@@ -76,22 +75,17 @@ var Daemon = /*#__PURE__*/function () {
76
75
this . uploading = new BehaviorSubject ( {
77
76
status : this . UPLOAD_NOPE
78
77
} ) ;
78
+ this . uploadInProgress = this . uploading . pipe ( filter ( function ( upload ) {
79
+ return upload . status === _this . UPLOAD_IN_PROGRESS ;
80
+ } ) ) ;
79
81
this . uploadingDone = this . uploading . pipe ( filter ( function ( upload ) {
80
82
return upload . status === _this . UPLOAD_DONE ;
81
83
} ) ) . pipe ( first ( ) ) . pipe ( takeUntil ( this . uploading . pipe ( filter ( function ( upload ) {
82
84
return upload . status === _this . UPLOAD_ERROR ;
83
85
} ) ) ) ) ;
84
- this . cdcResetDone = this . uploading . pipe ( filter ( function ( upload ) {
85
- return upload . status === _this . CDC_RESET_DONE ;
86
- } ) , first ( ) , takeUntil ( this . uploading . pipe ( filter ( function ( upload ) {
87
- return upload . status === _this . UPLOAD_ERROR || upload . status === _this . UPLOAD_DONE ;
88
- } ) ) ) ) ;
89
86
this . uploadingError = this . uploading . pipe ( filter ( function ( upload ) {
90
87
return upload . status === _this . UPLOAD_ERROR ;
91
88
} ) ) . pipe ( first ( ) ) . pipe ( takeUntil ( this . uploadingDone ) ) ;
92
- this . uploadInProgress = this . uploading . pipe ( filter ( function ( upload ) {
93
- return upload . status === _this . UPLOAD_IN_PROGRESS ;
94
- } ) ) ;
95
89
this . devicesList = new BehaviorSubject ( {
96
90
serial : [ ] ,
97
91
network : [ ]
@@ -148,13 +142,6 @@ var Daemon = /*#__PURE__*/function () {
148
142
_this2 . agentFound . next ( false ) ;
149
143
}
150
144
} ) ;
151
- } // eslint-disable-next-line class-methods-use-this
152
-
153
- } , {
154
- key : "cdcReset" ,
155
- value : function cdcReset ( ) {
156
- // It's a no-op for daemons different from web serial deamon
157
- return Promise . resolve ( true ) ;
158
145
}
159
146
/**
160
147
* Upload a sketch to serial target
@@ -246,6 +233,12 @@ var Daemon = /*#__PURE__*/function () {
246
233
} ) ;
247
234
248
235
var files = [ ] . concat ( _toConsumableArray ( uploadCommandInfo . files || [ ] ) , _toConsumableArray ( compilationResult . files || [ ] ) ) ;
236
+ console . dir ( '******** BEGIN: daemon:176 ********' ) ;
237
+ console . dir ( uploadPayload , {
238
+ depth : null ,
239
+ colors : true
240
+ } ) ;
241
+ console . dir ( '******** END: daemon:176 ********' ) ;
249
242
250
243
_this3 . _upload ( uploadPayload , _objectSpread ( _objectSpread ( { } , uploadCommandInfo ) , { } , {
251
244
files : files
0 commit comments