Skip to content

Commit

Permalink
Merge pull request #52 from fagci/main
Browse files Browse the repository at this point in the history
Sync for up-to-date release
  • Loading branch information
piotr022 authored Jul 26, 2023
2 parents a08a673 + 37fbcd7 commit 1cf1c54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spectrum_fagci/spectrum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ class CSpectrum {
case 15:
UpdateFreqChangeStep(-100_KHz);
break;
case 5:
ToggleBacklight();
default:
isUserInput = false;
}
Expand Down Expand Up @@ -318,6 +320,10 @@ class CSpectrum {
*FwData.p8FlashLightStatus = 3;
}

inline void ToggleBacklight() {
GPIOB->DATA ^= GPIO_PIN_6;
}

inline u8 Rssi2Y(u8 rssi) {
return clamp(DrawingEndY - (rssi - rssiMin), 1, DrawingEndY);
}
Expand Down

0 comments on commit 1cf1c54

Please sign in to comment.