Fixed text count for APPLE

This commit is contained in:
Jordan Sherer 2018-11-01 00:41:15 -04:00
parent 4e981da9c8
commit 804605e9e6

View File

@ -551,9 +551,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
m_manual {&m_network_manager}, m_manual {&m_network_manager},
m_txFrameCount {0}, m_txFrameCount {0},
m_txTextDirty {false}, m_txTextDirty {false},
m_previousFreq {0},
m_txFrameCountEstimate {0}, m_txFrameCountEstimate {0},
m_txFrameCount {0} m_previousFreq {0}
{ {
ui->setupUi(this); ui->setupUi(this);
@ -8026,7 +8025,7 @@ void MainWindow::updateTextDisplay(){
#if __APPLE__ #if __APPLE__
#define USE_SYNC_FRAME_COUNT 1 #define USE_SYNC_FRAME_COUNT 1
#else #else
#define USE_SYNC_FRAME_COUNT 0 #define USE_SYNC_FRAME_COUNT 1
#endif #endif
void MainWindow::refreshTextDisplay(){ void MainWindow::refreshTextDisplay(){
@ -8038,8 +8037,8 @@ void MainWindow::refreshTextDisplay(){
QStringList textList; QStringList textList;
qDebug() << "frames:"; qDebug() << "frames:";
foreach(Frame frame, frames){ foreach(auto frame, frames){
auto dt = DecodedText(frame.frame, frame.bits); auto dt = DecodedText(frame.first, frame.second);
qDebug() << "->" << frame << dt.message() << Varicode::frameTypeString(dt.frameType()); qDebug() << "->" << frame << dt.message() << Varicode::frameTypeString(dt.frameType());
textList.append(dt.message()); textList.append(dt.message());
} }