Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
c4b4b7d9
Commit
c4b4b7d9
authored
Sep 10, 2025
by
martin hou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v20250816' into device-mgr
parents
6b841d87
41a29e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jensen.js
src/utils/jensen.js
+2
-2
No files found.
src/utils/jensen.js
View file @
c4b4b7d9
...
...
@@ -195,7 +195,7 @@ function Jensen(log, conn) {
{
// 应该要连续多次5秒的间隔才能算从休眠中恢复
// 这个状态很可能只是一次临时唤醒,我需要更准确的彻底恢复
if
(
typeof
(
self
.
onwakeup
)
==
'function'
)
if
(
typeof
(
self
.
onwakeup
)
==
'function'
&&
Boolean
(
current
)
)
{
setTimeout
(
function
()
{
let
currentTime
=
new
Date
().
getTime
();
...
...
@@ -334,7 +334,7 @@ function Jensen(log, conn) {
current
=
'cmd-'
+
cmd
.
command
+
'-'
+
cmd
.
index
;
Logger
.
debug
(
'jensen'
,
'sendNext'
,
pid
+
'-command: '
+
current
+
', data bytes: '
+
data
.
byteLength
);
self
.
timewait
=
cmd
.
command
==
TRANSFER_FILE
||
cmd
.
command
==
GET_FILE_BLOCK
?
1
000
:
10
;
self
.
timewait
=
cmd
.
command
==
TRANSFER_FILE
||
cmd
.
command
==
GET_FILE_BLOCK
?
2
000
:
10
;
// self.timewait = 10000;
console
.
log
(
pid
+
'-send'
,
data
);
if
(
self
.
onprogress
&&
cmd
.
command
==
TRANSFER_FILE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment