Portduino: Allow limiting TX Power from yaml (#5954)

This commit is contained in:
Austin
2025-01-29 06:51:26 -05:00
committed by GitHub
parent 6a12760c3d
commit 78da8f6fc4
8 changed files with 37 additions and 6 deletions

View File

@@ -11,6 +11,9 @@
// Particular boards might define a different max power based on what their hardware can do, default to max power output if not
// specified (may be dangerous if using external PA and SX126x power config forgotten)
#if ARCH_PORTDUINO
#define SX126X_MAX_POWER settingsMap[sx126x_max_power]
#endif
#ifndef SX126X_MAX_POWER
#define SX126X_MAX_POWER 22
#endif
@@ -333,4 +336,4 @@ template <typename T> bool SX126xInterface<T>::sleep()
return true;
}
#endif
#endif