Merge branch 'next' into schwabe/spektrum_dsm2_bind
# Conflicts: # radio/src/translations/de.h.txt
This commit is contained in:
+12
-7
@@ -924,27 +924,27 @@ inline int divRoundClosest(const int n, const int d)
|
||||
#define calc100to256_16Bits(x) calc100to256(x)
|
||||
#define calc100toRESX_16Bits(x) calc100toRESX(x)
|
||||
|
||||
inline int calc100to256(register int x)
|
||||
inline int calc100to256(int x)
|
||||
{
|
||||
return divRoundClosest(x*256, 100);
|
||||
}
|
||||
|
||||
inline int calc100toRESX(register int x)
|
||||
inline int calc100toRESX(int x)
|
||||
{
|
||||
return divRoundClosest(x*RESX, 100);
|
||||
}
|
||||
|
||||
inline int calc1000toRESX(register int x)
|
||||
inline int calc1000toRESX(int x)
|
||||
{
|
||||
return divRoundClosest(x*RESX, 1000);
|
||||
}
|
||||
|
||||
inline int calcRESXto1000(register int x)
|
||||
inline int calcRESXto1000(int x)
|
||||
{
|
||||
return divRoundClosest(x*1000, RESX);
|
||||
}
|
||||
|
||||
inline int calcRESXto100(register int x)
|
||||
inline int calcRESXto100(int x)
|
||||
{
|
||||
return divRoundClosest(x*100, RESX);
|
||||
}
|
||||
@@ -1354,8 +1354,13 @@ void clearMFP();
|
||||
extern uint8_t requiredSpeakerVolume;
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
extern uint8_t requestScreenshot;
|
||||
#if defined(CPUARM)
|
||||
enum MainRequest {
|
||||
REQUEST_SCREENSHOT,
|
||||
REQUEST_FLIGHT_RESET,
|
||||
};
|
||||
|
||||
extern uint8_t mainRequestFlags;
|
||||
#endif
|
||||
|
||||
void checkBattery();
|
||||
|
||||
Reference in New Issue
Block a user