Skip to content

Commit 859a062

Browse files
committed
Updated core and docs with on device scripting improvements
1 parent 6933b7a commit 859a062

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

depthai-core

docs/source/components/nodes/script.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Usage
5555
b = Buffer(len(x_serial))
5656
while True:
5757
time.sleep(1)
58-
b.getData()[:] = x_serial
58+
b.setData(x_serial)
5959
node.io['out'].send(b)
6060
""")
6161
script.outputs['out'].link(xout.input)
@@ -78,7 +78,7 @@ Usage
7878
b = Buffer(len(x_serial))
7979
while True:
8080
time.sleep(1)
81-
b.getData()[:] = x_serial
81+
b.setData(x_serial)
8282
node.io['out'].send(b)
8383
)");
8484
script->outputs["out"].link(xout->input);

0 commit comments

Comments
 (0)