Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkmm committed Oct 28, 2024
1 parent 92387ce commit d9d1a72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firmware/application/apps/ui_encoders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,15 @@ void EncodersConfigView::on_show() {
on_type_change(0);
}

// clang-format off
void EncodersConfigView::draw_waveform() {
// padding reason:
// in real world the signal would always start with low level and became low level again after yout turn off the radio;
// the waveform_buffer only controls drawing, the real send logic that been sent is controlled by frame_fragments
// so just for out of looking things

// clang-format off

#define PADDING_LEFT 1
#define PADDING_RIGHT 1
// clang-format on

size_t length = frame_fragments.length();

Expand All @@ -189,6 +188,7 @@ void EncodersConfigView::draw_waveform() {
waveform.set_length(length + PADDING_LEFT + PADDING_RIGHT);
waveform.set_dirty();
}
// clang-format on

void EncodersConfigView::generate_frame() {
frame_fragments.clear();
Expand Down

0 comments on commit d9d1a72

Please sign in to comment.