ggwave : add mono-tone protocols

This commit is contained in:
Georgi Gerganov
2022-05-29 21:25:17 +03:00
parent fb2dcb3a37
commit 6888ca58f2
5 changed files with 89 additions and 39 deletions

View File

@@ -41,7 +41,7 @@ int main(int argc, char** argv) {
printf(" -t%d : %s\n", protocol.first, protocol.second.name);
}
if (txProtocolId < 0 || txProtocolId > (int) ggWave->getTxProtocols().size()) {
if (txProtocolId < 0) {
fprintf(stderr, "Unknown Tx protocol %d\n", txProtocolId);
return -3;
}