Commit ee26a102 authored by Manolis Surligas's avatar Manolis Surligas

Small improvements

parent 1c30dfe1
......@@ -676,7 +676,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>value</key>
<value>435.8e6</value>
<value>145.835e6</value>
</param>
</block>
<block>
......@@ -864,7 +864,7 @@ is too great and becomes a bottlneck.</value>
</param>
<param>
<key>value</key>
<value>435.8e6</value>
<value>145.835e6</value>
</param>
</block>
<block>
......@@ -2386,7 +2386,7 @@ is too great and becomes a bottlneck.</value>
</param>
<param>
<key>_coordinate</key>
<value>(504, 418)</value>
<value>(640, 418)</value>
</param>
<param>
<key>_rotation</key>
......@@ -4066,7 +4066,7 @@ is too great and becomes a bottlneck.</value>
</param>
<param>
<key>preamble_len</key>
<value>16</value>
<value>32</value>
</param>
<param>
<key>src_addr</key>
......@@ -4203,7 +4203,7 @@ is too great and becomes a bottlneck.</value>
</param>
<param>
<key>port</key>
<value>16886</value>
<value>16887</value>
</param>
</block>
<block>
......
......@@ -158,11 +158,8 @@ namespace gr
}
else{
d_decoded_bits++;
if(d_decoded_bits == 8){
d_received_bytes++;
if(d_received_bytes > 0){
reset_state();
}
if(d_decoded_bits/8 > 3){
reset_state();
}
}
break;
......@@ -207,7 +204,7 @@ namespace gr
* that the distance between the last SYNC flag is greater than 3 bytes
*/
if (d_dec_b == AX25_SYNC_FLAG) {
if (d_received_bytes < 2) {
if (d_received_bytes < 3) {
enter_sync_state ();
}
else {
......@@ -254,11 +251,8 @@ namespace gr
}
else {
d_decoded_bits++;
if (d_decoded_bits == 8) {
d_received_bytes++;
if (d_received_bytes > 3) {
reset_state ();
}
if (d_decoded_bits / 8 > 3) {
reset_state();
}
}
break;
......
......@@ -39,9 +39,6 @@ namespace gr {
whitening::whitening (uint32_t mask, uint32_t seed, uint32_t order) :
d_lfsr(mask, seed, order)
{
if (order > 32) {
throw std::invalid_argument ("The maximum allowed order is 32");
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment