diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:54:22 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:54:22 +0900 |
commit | 5825c1d8982bb7ac65c0c43f34d1de07fda0aa38 (patch) | |
tree | 657e8d2cabcf8af73445932844f68f83bbf4085f | |
parent | b632b38172ebd582a5989cc820ff7ed3c99515b6 (diff) |
store distortion dac values, not floats
-rw-r--r-- | flash.c | 2 | ||||
-rw-r--r-- | globals.h | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -639,7 +639,7 @@ static void initFlashValues(FlashStruct *mem) for (m=0; m<2; m++) { mem->ampl_dacval[i][k][m][j]=0; mem->ampl_pwl[i][k][m][j]=0.0; - mem->distort_pwl[i][k][m][j]=0.0; + mem->distort_dacval[i][k][m][j]=0; } mem->ampl_dacval[i][0][0][1]=dac_max; @@ -761,9 +761,9 @@ typedef struct { /* addr 10256, add ampl-dependent distort output, 10V full-scale */ - float distort_pwl[max_channels][ampl_ranges][ampl_polarities][points_in_range]; - char distort_dac[max_channels]; /* addr 11056 */ - char distort_enabled[max_channels]; /* addr 11058 */ + short distort_dacval[max_channels][ampl_ranges][ampl_polarities][points_in_range]; + char distort_dac[max_channels]; /* addr 10656 */ + char distort_enabled[max_channels]; /* addr 10658 */ char flash_end; |