按规划继续工作
结论:修正 standalone 工具表 adapter 的工具查找顺序,使 M61 Q2 current-pocket 行为与 upstream rs274 -t -i 对齐,并将 tool_semantics 的 M61 事件纳入原生 side-by-side 基线。
This commit is contained in:
@@ -88,11 +88,14 @@ int find_tool_index_for_tool(int toolno)
|
||||
}
|
||||
|
||||
const auto &tools = tool_table();
|
||||
for (int index = 0; index < CANON_POCKETS_MAX; ++index) {
|
||||
for (int index = 1; index < CANON_POCKETS_MAX; ++index) {
|
||||
if (tools[index].toolno == toolno) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
if (tools[0].toolno == toolno) {
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user