option(BUILD_SHARED_LIBS
"Build shared library. Set to OFF for static library." ON)
# Unittest should be on for dev builds and off for releases.
-#if(CMAKE_BUILD_TYPE MATCHES "Release")
+if(CMAKE_BUILD_TYPE MATCHES "Release")
option(UNITTEST "Build unittest binaries." OFF)
-#else()
- #option(UNITTEST "Build unittest binaries." ON)
-#endif()
+else()
+ option(UNITTEST "Build unittest binaries." ON)
+endif()
option(INSTALL_EXAMPLES "Install example code." OFF)
if(INSTALL_EXAMPLES)
install(DIRECTORY octave raw script wav
memcpy(ch_buf, &ch_buf[nin_frame], sizeof(COMP)*ch_buf_n);
nin_frame = tmp;
-
- for (int i = 0; i < COHPSK_BITS_PER_FRAME; i++)
+ int i;
+ for (i = 0; i < COHPSK_BITS_PER_FRAME; i++)
{
rx_bits_char[i] = rx_bits_sd[i];
}
- cohpsk_put_test_bits(coh, &state, error_pattern, &bit_errors, rx_bits_char);
+ cohpsk_put_test_bits(coh, &state, error_pattern, &bit_errors, rx_bits_char, 0);
nerrors += bit_errors;
nbits += COHPSK_BITS_PER_FRAME;