ggwave : add DSS test + remove OperatingMode enum

This commit is contained in:
Georgi Gerganov
2022-06-11 20:23:13 +03:00
parent 4c5a86c7ae
commit c4947d75d7
9 changed files with 28 additions and 26 deletions

View File

@@ -79,8 +79,8 @@ int main(int argc, char** argv) {
fprintf(stderr, "Generating waveform for message '%s' ...\n", message.c_str());
ggwave_OperatingMode mode = GGWAVE_OPERATING_MODE_RX_AND_TX;
if (useDSS) mode = ggwave_OperatingMode(mode | GGWAVE_OPERATING_MODE_USE_DSS);
GGWave::OperatingMode mode = GGWAVE_OPERATING_MODE_RX_AND_TX;
if (useDSS) mode |= GGWAVE_OPERATING_MODE_USE_DSS;
GGWave ggWave({
payloadLength,