diff options
| author | Keith Packard <keithp@keithp.com> | 2012-06-28 17:43:36 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-06-28 17:43:36 -0700 | 
| commit | edbc5d27c8c2936b59ff5289276d9198b501ebc8 (patch) | |
| tree | 6a39f81f2f701775c4b7d35c816a3a7051ad1caa | |
| parent | ccf64117662fc800a07b3a25e52255b80f8b5eaf (diff) | |
altos: Declare cc1111 accel_ref as unsigned so the math works1.0.9.6
If accel_ref is signed, then the careful shifting and dividing dance
necessary to correct for changes in the relationship between the 5V
and 3.3V supplies always generates zero.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | src/cc1111/ao_arch.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h index cece09eb..8d9e4952 100644 --- a/src/cc1111/ao_arch.h +++ b/src/cc1111/ao_arch.h @@ -206,7 +206,7 @@ struct ao_adc {  	int16_t		sense_d;	/* drogue continuity sense */  	int16_t		sense_m;	/* main continuity sense */  #if HAS_ACCEL_REF -	int16_t		accel_ref;	/* acceleration reference */ +	uint16_t	accel_ref;	/* acceleration reference */  #endif  };  | 
