Skip to content

Commit

Permalink
Update spectrum.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DE8MSH authored Jul 24, 2023
1 parent 4478d30 commit 1646342
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/spectrum_fagci/spectrum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,11 @@ inline void DrawNums() {
}

inline void DrawRssiTriggerLevel() {
// Display.DrawLine(0, 127, Rssi2Y(rssiTriggerLevel));

}

inline void DrawTicks() {
u32 f = modulo(FStart, 1_MHz);
u32 step = scanStep >> sampleZoom;
for (u8 i = 0; i < 128; ++i, f += step) {
u8 barValue = 0b00001000;
modulo(f, 100_KHz) < step && (barValue |= 0b00010000);
modulo(f, 500_KHz) < step && (barValue |= 0b00100000);
modulo(f, 1_MHz) < step && (barValue |= 0b11000000);

*(FwData.pDisplayBuffer + BarPos + i) |= barValue;
}

// center
*(FwData.pDisplayBuffer + BarPos + 64) |= 0b10101010;
}

inline void DrawArrow(u8 x) {
Expand Down

0 comments on commit 1646342

Please sign in to comment.