spectran http source + hermes source cleanup

This commit is contained in:
AlexandreRouma
2022-12-04 02:10:34 +01:00
parent b104e82874
commit f163e926c7
14 changed files with 1837 additions and 23 deletions

View File

@ -10,13 +10,12 @@ namespace hermes {
}
void Client::close() {
if (!open) { return; }
sock->close();
// Wait for worker to exit
out.stopWriter();
if (workerThread.joinable()) { workerThread.join(); }
open = false;
out.clearWriteStop();
}
void Client::start() {
@ -195,7 +194,7 @@ namespace hermes {
si = (si << 8) >> 8;
sq = (sq << 8) >> 8;
// Convert to float (IQ swapper for some reason... 'I' means in-phase... :facepalm:)
// Convert to float (IQ swapped for some reason)
out.writeBuf[i].im = (float)si / (float)0x1000000;
out.writeBuf[i].re = (float)sq / (float)0x1000000;
}

View File

@ -153,7 +153,6 @@ namespace hermes {
void worker();
bool open = true;
double freq = 0;
std::thread workerThread;