Skip to content

Commit 2005d82

Browse files
committed
Remove MASTER_WITHOUT_OUTPUT
Signed-off-by: stas.bucik <[email protected]>
1 parent 09782c4 commit 2005d82

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

bindings/python/src/pipeline/CommonBindings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack) {
225225

226226
// M8FsyncRole enum bindings
227227
m8FsyncRole.value("AUTO_DETECT", M8FsyncRole::AUTO_DETECT)
228-
.value("STANDALONE_NO_M8_FUNCTION", M8FsyncRole::STANDALONE_NO_M8_FUNCTION)
229-
.value("MASTER_WITH_OUTPUT", M8FsyncRole::MASTER_WITH_OUTPUT)
228+
.value("MASTER", M8FsyncRole::MASTER)
230229
.value("SLAVE", M8FsyncRole::SLAVE);
231230

232231
// CameraSensorType enum bindings

examples/cpp/Misc/MultiDevice/multi_device_m8_fsync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main(int argc, char** argv) {
8181

8282
auto role = device->getM8FsyncRole();
8383

84-
if (role == dai::M8FsyncRole::MASTER_WITH_OUTPUT) {
84+
if (role == dai::M8FsyncRole::MASTER) {
8585
master_pipelines.push_back(pipeline);
8686
} else if (role == dai::M8FsyncRole::SLAVE) {
8787
slave_pipelines.push_back(pipeline);

examples/python/Misc/MultiDevice/multi_device_m8_fsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def createPipeline(pipeline: dai.Pipeline, socket: dai.CameraBoardSocket = dai.C
9999
socket = device.getConnectedCameras()[1]
100100
pipeline, out_q = createPipeline(pipeline, socket)
101101
role = device.getM8FsyncRole()
102-
if (role == dai.M8FsyncRole.MASTER_WITH_OUTPUT):
102+
if (role == dai.M8FsyncRole.MASTER):
103103
master_pipelines.append(pipeline)
104104
elif (role == dai.M8FsyncRole.SLAVE):
105105
slave_pipelines.append(pipeline)

include/depthai/common/M8FsyncRoles.hpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@ namespace dai {
88
* Which Fsymc role the device will have.
99
*
1010
* AUTO_DETECT denotes that the decision will be made by device.
11-
* It will choose between MASTER_WITH_OUTPUT and SLAVE.
11+
* It will choose between MASTER and SLAVE.
1212
*/
1313
enum class M8FsyncRole : int32_t {
1414
// This role is only used in setM8FsyncRole() function.
1515
// It signals to the device to automatically detect M8 Fsync configuration.
1616
AUTO_DETECT = -1,
1717

18-
// Standalone mode.
19-
// STM generates Fsync signal, doesn't output it through M8 connector.
20-
STANDALONE_NO_M8_FUNCTION,
21-
2218
// Fsync master.
2319
// STM generates Fsync signal and outputs it through M8 connector.
24-
MASTER_WITH_OUTPUT,
20+
MASTER,
2521

2622
// Fsync slave.
2723
// Device must lock onto an external Fsync signal on the M8 connector.
@@ -32,10 +28,8 @@ inline std::string toString(M8FsyncRole role) {
3228
switch(role) {
3329
case M8FsyncRole::AUTO_DETECT:
3430
return "AUTO DETECT";
35-
case M8FsyncRole::STANDALONE_NO_M8_FUNCTION:
36-
return "STANDALONE, NO M8 FUNCTION";
37-
case M8FsyncRole::MASTER_WITH_OUTPUT:
38-
return "MASTER, WITH OUTPUT";
31+
case M8FsyncRole::MASTER:
32+
return "MASTER";
3933
case M8FsyncRole::SLAVE:
4034
return "SLAVE";
4135
default:

0 commit comments

Comments
 (0)