fix windows CI missing module

This commit is contained in:
AlexandreRouma 2024-02-02 23:06:03 +01:00
parent a08d2a0f85
commit a0ff745b63
2 changed files with 37 additions and 32 deletions

View File

@ -85,21 +85,24 @@ namespace pocsag {
void Decoder::flushMessage() { void Decoder::flushMessage() {
if (!msg.empty()) { if (!msg.empty()) {
// Unpack bits // // Unpack bits
std::string outStr = ""; // std::string outStr = "";
// for (int i = 0; (i+7) <= msg.size(); i += 7) {
// uint8_t b0 = msg[i];
// uint8_t b1 = msg[i+1];
// uint8_t b2 = msg[i+2];
// uint8_t b3 = msg[i+3];
// uint8_t b4 = msg[i+4];
// uint8_t b5 = msg[i+5];
// uint8_t b6 = msg[i+6];
// outStr += (char)((b6<<6) | (b5<<5) | (b4<<4) | (b3<<3) | (b2<<2) | (b1<<1) | b0);
// }
// onMessage(addr, msgType, outStr);
for (int i = 0; (i+7) <= msg.size(); i += 7) { // Send out message
uint8_t b0 = msg[i]; onMessage(addr, msgType, msg);
uint8_t b1 = msg[i+1];
uint8_t b2 = msg[i+2];
uint8_t b3 = msg[i+3];
uint8_t b4 = msg[i+4];
uint8_t b5 = msg[i+5];
uint8_t b6 = msg[i+6];
outStr += (char)((b6<<6) | (b5<<5) | (b4<<4) | (b3<<3) | (b2<<2) | (b1<<1) | b0);
}
onMessage(addr, msgType, outStr); // Reset state
msg.clear(); msg.clear();
leftInLast = 0; leftInLast = 0;
} }
@ -165,30 +168,30 @@ namespace pocsag {
} }
else if (msgType == MESSAGE_TYPE_ALPHANUMERIC) { else if (msgType == MESSAGE_TYPE_ALPHANUMERIC) {
// Alpha messages pack 7bit characters in the entire codeword stream // Alpha messages pack 7bit characters in the entire codeword stream
// int lasti; int lasti;
// for (int i = -leftInLast; i <= POCSAG_DATA_BITS_PER_CW-7; i += 7) { for (int i = -leftInLast; i <= POCSAG_DATA_BITS_PER_CW-7; i += 7) {
// // Read 7 bits // Read 7 bits
// char c = 0; char c = 0;
// if (i < 0) { if (i < 0) {
// c = (lastMsgData & ((1 << (-i)) - 1)) << (7+i); c = (lastMsgData & ((1 << (-i)) - 1)) << (7+i);
// } }
// c |= (data >> (13 - i)) & 0b1111111; c |= (data >> (13 - i)) & 0b1111111;
// // Save character // Save character
// bitswapChar(c, c); bitswapChar(c, c);
// msg += c; msg += c;
// // Update last successful unpack // Update last successful unpack
// lasti = i; lasti = i;
// }
// Pack the bits backwards
for (int i = 19; i >= 0; i--) {
msg += (char)((data >> i) & 1);
} }
// Save how much is still left to read // Save how much is still left to read
//leftInLast = 20 - (lasti + 7); leftInLast = 20 - (lasti + 7);
// // Pack the bits backwards
// for (int i = 19; i >= 0; i--) {
// msg += (char)((data >> i) & 1);
// }
} }
// Save last data // Save last data

View File

@ -79,6 +79,8 @@ cp $build_dir/misc_modules/discord_integration/Release/discord_integration.dll s
cp $build_dir/misc_modules/frequency_manager/Release/frequency_manager.dll sdrpp_windows_x64/modules/ cp $build_dir/misc_modules/frequency_manager/Release/frequency_manager.dll sdrpp_windows_x64/modules/
cp $build_dir/misc_modules/iq_exporter/Release/iq_exporter.dll sdrpp_windows_x64/modules/
cp $build_dir/misc_modules/recorder/Release/recorder.dll sdrpp_windows_x64/modules/ cp $build_dir/misc_modules/recorder/Release/recorder.dll sdrpp_windows_x64/modules/
cp $build_dir/misc_modules/rigctl_client/Release/rigctl_client.dll sdrpp_windows_x64/modules/ cp $build_dir/misc_modules/rigctl_client/Release/rigctl_client.dll sdrpp_windows_x64/modules/