| 1360 | // ═════════════════════════════════════════════════════════════════════════════ |
| 1361 | |
| 1362 | void section16(CatClient& c, Runner& r) |
| 1363 | { |
| 1364 | r.section(QStringLiteral("Section 16 — ZZDE — Diversity Receive (FLEX-6700)")); |
| 1365 | |
| 1366 | QString orig = c.query(QStringLiteral("ZZDE")); |
| 1367 | const bool validResp = (orig == QLatin1String("ZZDE0") || |
| 1368 | orig == QLatin1String("ZZDE1")); |
| 1369 | const bool noSupport = (orig == QLatin1String("?")); |
| 1370 | |
| 1371 | r.check(QStringLiteral("16.1 ZZDE; → ZZDE0, ZZDE1 (6700), or ?; (non-6700)"), |
| 1372 | validResp || noSupport, repr(orig)); |
| 1373 | |
| 1374 | if (validResp) { |
| 1375 | QString toggle = (orig == QLatin1String("ZZDE0")) |
| 1376 | ? QStringLiteral("ZZDE1") : QStringLiteral("ZZDE0"); |
| 1377 | c.send(toggle); |
| 1378 | QThread::msleep(50); |
| 1379 | QString got = c.query(QStringLiteral("ZZDE")); |
| 1380 | r.check(QStringLiteral("16.2 ZZDE set/get round-trip"), |
| 1381 | got == toggle, repr(got)); |
| 1382 | c.send(orig); // restore |
| 1383 | QThread::msleep(50); |
| 1384 | } |
| 1385 | } |
| 1386 | |
| 1387 | // ═════════════════════════════════════════════════════════════════════════════ |
| 1388 | // Section 15 — PTY round-trip (Unix only; skips if device cannot be opened) |