audio fixes attempt

This commit is contained in:
Logan
2026-05-23 14:59:51 -04:00
parent 9cf8fd4221
commit 35ce8e911e
4 changed files with 71 additions and 9 deletions
+5 -2
View File
@@ -25,8 +25,11 @@ export const c2api = {
getNode: (id: string) => request<unknown>(`/nodes/${id}`),
sendCommand: (nodeId: string, payload: object) =>
request(`/nodes/${nodeId}/command`, { method: "POST", body: JSON.stringify(payload) }),
assignSystem: (nodeId: string, systemId: string) =>
request(`/nodes/${nodeId}/config/${systemId}`, { method: "POST" }),
assignSystem: (nodeId: string, systemId: string, hardwarePreset: string, ppmOverride?: number) => {
const params = new URLSearchParams({ hardware_preset: hardwarePreset });
if (ppmOverride !== undefined) params.set("ppm_override", String(ppmOverride));
return request(`/nodes/${nodeId}/config/${systemId}?${params}`, { method: "POST" });
},
// Systems
getSystems: () => request<unknown[]>("/systems"),
+2
View File
@@ -11,6 +11,8 @@ export interface NodeRecord {
last_seen: string | null;
assigned_system_id: string | null;
approval_status: ApprovalStatus | null;
hardware_preset?: string;
ppm_override?: number | null;
}
export interface VocabularyPendingTerm {