forked from Blendman974/faceclaw
Ensure connection is re-set to 2M on reconnect
This commit is contained in:
1 parent
8e50c004a6
commit
71bccd2c1c
6 files changed
+131
-6
No files matched your search
@@ -166,7 +166,10 @@ export class BandwidthBenchmarkLayer implements Layer {
|
||||
`Messages: ${r.messagesAcked}/${r.messagesSent} acked, ${r.timeouts} timeouts`,
|
||||
`Elapsed: ${seconds.toFixed(1)} s` + (r.aborted ? " (aborted early)" : ""),
|
||||
];
|
||||
if (LINK_REQUESTS_SUPPORTED) lines.push(`Link request: ${LINK_MODES[r.linkMode] ?? "Current"}`);
|
||||
if (LINK_REQUESTS_SUPPORTED) {
|
||||
const phy = r.leftPhy || r.rightPhy ? `; PHY L ${r.leftPhy ?? "?"}, R ${r.rightPhy ?? "?"}` : "";
|
||||
lines.push(`Link request: ${LINK_MODES[r.linkMode] ?? "Current"}${phy}`);
|
||||
}
|
||||
for (const line of lines) {
|
||||
image.drawText(font, LIST_X, y, line, 190);
|
||||
y += 20;
|
||||
|
||||
@@ -22,6 +22,9 @@ export type BandwidthBenchmarkStatus = {
|
||||
payloadBytesAcked: number;
|
||||
wireBytesAcked: number;
|
||||
aborted: boolean;
|
||||
/** Each arm's current PHY ("2M", "1M", ...); null when the platform doesn't report it. */
|
||||
leftPhy?: string | null;
|
||||
rightPhy?: string | null;
|
||||
};
|
||||
|
||||
function activeCommunicator(): any {
|
||||
|
||||
Reference in new issue
Block a user