| 747 | // ── PC / ZZPC — RF power drive level (0-100, 3-digit) ─────────────────────── |
| 748 | |
| 749 | QString SmartCatProtocol::cmdPC(const QString& arg) |
| 750 | { |
| 751 | TransmitModel& tx = m_model->transmitModel(); |
| 752 | if (arg.isEmpty()) |
| 753 | return "PC" + fmt3(tx.rfPower()) + ";"; |
| 754 | bool ok; |
| 755 | int v = arg.toInt(&ok); |
| 756 | if (!ok || v < 0 || v > 100) return "?;"; |
| 757 | tx.setRfPower(v); |
| 758 | return {}; |
| 759 | } |
| 760 | |
| 761 | QString SmartCatProtocol::cmdZZPC(const QString& arg) |
| 762 | { |
nothing calls this directly
no test coverage detected