diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-12 18:54:14 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-12 18:54:14 +0200 |
| commit | e20f8816f48aa80a82b241ef73e2d9ab92833f87 (patch) | |
| tree | 60cfd4d9fa7e3f3525df8ad98ddaa9cf65fe2825 /src/common/includes/GPIO | |
| parent | 6f95a22ce25839825c79d4529317984bd3e1b870 (diff) | |
| download | glutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.tar.gz glutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.tar.bz2 glutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.zip | |
Fix analog supply voltage readout
Diffstat (limited to 'src/common/includes/GPIO')
| -rw-r--r-- | src/common/includes/GPIO/analog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/includes/GPIO/analog.h b/src/common/includes/GPIO/analog.h index 99404f6..54dfb5d 100644 --- a/src/common/includes/GPIO/analog.h +++ b/src/common/includes/GPIO/analog.h @@ -30,3 +30,8 @@ void analog_init(void); * Returns 0.0f in case of error */ float analog_measure_12v(void); +/* Keep an average of measurements, and decide if the repeater should enter + * QRP. Returns 1 if low power must be activated + */ +int analog_supply_too_low(void); + |
