Skip to content

Commit

Permalink
fixing indent (#982)
Browse files Browse the repository at this point in the history
resolving conversations in #968
  • Loading branch information
gullradriel committed May 13, 2023
1 parent a8cdde7 commit 415d8cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion firmware/application/apps/pocsag_app.hpp
Expand Up @@ -91,7 +91,7 @@ class POCSAGAppView : public View {
FrequencyField field_frequency {
{ 0 * 8, 0 * 8 },
};
NumberField field_volume{
NumberField field_volume {
{ 28 * 8, 0 * 16 },
2,
{ 0, 99 },
Expand Down
4 changes: 2 additions & 2 deletions firmware/application/apps/ui_afsk_rx.cpp
Expand Up @@ -98,7 +98,7 @@ AFSKRxView::AFSKRxView(NavigationView& nav) {
};
};

check_log.set_value(logging);
check_log.set_value(logging);
check_log.on_select = [this](Checkbox&, bool v) {
logging = v;
};
Expand Down Expand Up @@ -165,7 +165,7 @@ void AFSKRxView::on_data(uint32_t value, bool is_data) {
}
prev_value = value;
}
else {
else {
// Baudrate estimation
text_debug.set("Baudrate estimation: ~" + to_string_dec_uint(value));
}
Expand Down
4 changes: 2 additions & 2 deletions firmware/application/apps/ui_afsk_rx.hpp
Expand Up @@ -86,14 +86,14 @@ class AFSKRxView : public View {
{ 0 * 8, 0 * 16 },
};

Checkbox check_log {
Checkbox check_log {
{ 0 * 8, 1 * 16 },
3,
"LOG",
false
};

Text text_debug {
Text text_debug {
{ 0 * 8, 12 + 2 * 16, 240, 16 },
"DEBUG"
};
Expand Down
2 changes: 1 addition & 1 deletion firmware/baseband/proc_siggen.cpp
Expand Up @@ -67,7 +67,7 @@ void SigGenProcessor::execute(const buffer_c8_t& buffer) {
// 16 bits LFSR .taps: 16, 15, 13, 4 ;feedback polynomial: x^16 + x^15 + x^13 + x^4 + 1
// Periode 65535= 2^n-1, quite continuous .
if (counter == 0) { // we slow down the shift register, because the pseudo random noise clock freq was too high for modulator.
bit_16 = ((lfsr_16 >> 0) ^ (lfsr_16 >> 1) ^ (lfsr_16 >> 3) ^ (lfsr_16 >> 4) ^ ((lfsr_16 >> 12) & 1) );
bit_16 = ((lfsr_16 >> 0) ^ (lfsr_16 >> 1) ^ (lfsr_16 >> 3) ^ (lfsr_16 >> 4) ^ ((lfsr_16 >> 12) & 1));
lfsr_16 = (lfsr_16 >> 1) | (bit_16 << 15);
sample = (lfsr_16 & 0x00FF); // main pseudo random noise generator.
}
Expand Down

0 comments on commit 415d8cf

Please sign in to comment.