Retain K1 connection between scans and admit the next named acquisition
This commit is contained in:
@@ -1516,13 +1516,14 @@ export function useXgridsK1Runtime(enabled: boolean) {
|
||||
);
|
||||
}
|
||||
|
||||
if (["idle", "closed", "completed"].includes(phase)) {
|
||||
if (["idle", "closed"].includes(phase)) {
|
||||
throw new ApiError(
|
||||
"K1 ещё не подключён. Сначала завершите подключение устройства в «Парке».",
|
||||
);
|
||||
}
|
||||
|
||||
if (phase === "connection-ready") {
|
||||
if (phase === "connection-ready" || (phase === "completed"
|
||||
&& nextState.application_control_session?.control_socket_open === true)) {
|
||||
const physical = nextState.application_control_session?.physical_command
|
||||
?? nextState.physical_command;
|
||||
if (physical?.requires_reconciliation === true) {
|
||||
|
||||
Reference in New Issue
Block a user