2
0
forked from Ivasoft/DSView

minor update for compiling on linux machine

This commit is contained in:
DreamSourceLab
2014-01-29 15:47:57 +08:00
parent 493d61d6c0
commit a76c4b4a5f
4 changed files with 6 additions and 6 deletions

View File

@@ -117,7 +117,7 @@ void dsSerial::decode()
uint64_t left = 0;
uint64_t right = snapshot->get_sample_count() - 1;
float samplesPerBit;
int sampleOffset;
//int sampleOffset;
int i;
_max_width = 0;
_min_width = right;
@@ -127,7 +127,7 @@ void dsSerial::decode()
samplesPerBit = _data->get_samplerate() * 1.0f / _baudrate;
else
samplesPerBit = snapshot->get_min_pulse(left, right, _serial_index);
sampleOffset = samplesPerBit / 2;
//sampleOffset = samplesPerBit / 2;
if (!_state_index.empty())
_state_index.clear();