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

@@ -279,6 +279,11 @@ int main(int argc, char ** argv) {
printf("Testing: protocol = %s, in = %d, out = %d\n", txProtocol.second.name, formatInp, formatOut);
for (int length = 1; length <= (int) payload.size(); ++length) {
// mono-tone protocols with variable length are not supported
if (txProtocol.second.extra == 2) {
break;
}
// variable payload length
{
auto parameters = GGWave::getDefaultParameters();