Some more MAX11040 fixes.

This commit is contained in:
Martin Mueller
2010-01-24 18:34:34 +00:00
parent 29d2b37f27
commit 5da41921f1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -551,7 +551,8 @@ void periodic_task_ap( void ) {
if (max11040_data == MAX11040_DATA_AVAILABLE) {
LED_TOGGLE(3);
for (i=0; i<16; i++) {
max11040_values_f[i] = (max11040_values[i] * 2.2) / 8388608.0;
/* we assume that the buffer will be full always in this test mode anyway */
max11040_values_f[i] = (max11040_values[max11040_buf_in][i] * 2.2) / 8388608.0;
}
DOWNLINK_SEND_TURB_PRESSURE_VOLTAGE(
+1 -1
View File
@@ -188,7 +188,7 @@ static void SSP_ISR(void) {
if (i != max11040_buf_out) {
max11040_buf_in = i;
} else {
max11040_buf_in = i;
//throw error;
}
}
}