diff --git a/ats0002/ats0002.c b/ats0002/ats0002.c index 57e45f6..9fcb1aa 100644 --- a/ats0002/ats0002.c +++ b/ats0002/ats0002.c @@ -189,7 +189,7 @@ void get_airflow_temperature(double *airflow_temperature, const air_passage_data { double min = data->min_airflow_temperature; double max = data->max_airflow_temperature; - _get_double_in_range(airflow_temperature, min, max, "Enter air temperature in C", "Incorrect air temperature. Try again."); + _get_double_in_range(airflow_temperature, min, max, "Enter airflow temperature in C", "Incorrect airflow temperature. Try again."); } void get_pressure_drop(double *pressure_drop_limit, const double *airflow, const double *airflow_pressure, double *corrected_airflow_pressure, const double *barometric_pressure, const double *airflow_temperature, const air_passage_data_t *data) @@ -306,8 +306,7 @@ static void _get_log_interpolated_airflow_pressure_drop_limit(double *limit, con } for (uint8_t i = 0; i < data->anchors_data_size - 1; ++i) { - if (*airflow >= data->air_passage_anchors[i].airflow && - *airflow <= data->air_passage_anchors[i + 1].airflow) + if (*airflow >= data->air_passage_anchors[i].airflow && *airflow <= data->air_passage_anchors[i + 1].airflow) { double log_x = log(*airflow); double log_x1 = log(data->air_passage_anchors[i].airflow); diff --git a/heat_exchander_airflow_pressure_drop b/heat_exchander_airflow_pressure_drop index 07bc0a8..7c35911 100755 Binary files a/heat_exchander_airflow_pressure_drop and b/heat_exchander_airflow_pressure_drop differ diff --git a/heat_exchander_airflow_pressure_drop.c b/heat_exchander_airflow_pressure_drop.c index b76e744..b8f14ed 100644 --- a/heat_exchander_airflow_pressure_drop.c +++ b/heat_exchander_airflow_pressure_drop.c @@ -6,7 +6,7 @@ #include "ats0002/21_53_89.h" #include "ats0002/21_53_88.h" -static const heat_exchanger_data_t heat_exchanger_data[] = { +static const heat_exchanger_data_t _heat_exchanger_data[] = { {"Honeywell Heat Exchanger CMM 21-50-14", heat_exchanger_21_50_14_data, ARRAY_SIZE(heat_exchanger_21_50_14_data)}, {"Honeywell Ram Heat Exchanger CMM 21-52-80", heat_exchanger_21_52_80_data, ARRAY_SIZE(heat_exchanger_21_52_80_data)}, {"Honeywell NGS Heat Exchanger CMM 47-32-06", heat_exchanger_47_32_06_data, ARRAY_SIZE(heat_exchanger_47_32_06_data)}, @@ -34,15 +34,15 @@ int main(void) "* *\n" "************************************************************\n" "\n"); - for (uint8_t i = 0; i < ARRAY_SIZE(heat_exchanger_data); ++i) + for (uint8_t i = 0; i < ARRAY_SIZE(_heat_exchanger_data); ++i) { - printf("%d. %s\n", i + 1, heat_exchanger_data[i].heat_exchanger_description); + printf("%d. %s\n", i + 1, _heat_exchanger_data[i].heat_exchanger_description); } printf("\n"); uint16_t heat_exchanger_number = 0; - ASK_CHOICE(heat_exchanger_number, get_heat_exchanger_number, ARRAY_SIZE(heat_exchanger_data)); + ASK_CHOICE(heat_exchanger_number, get_heat_exchanger_number, ARRAY_SIZE(_heat_exchanger_data)); printf("\n"); - const heat_exchanger_data_t *he = &heat_exchanger_data[heat_exchanger_number]; + const heat_exchanger_data_t *he = &_heat_exchanger_data[heat_exchanger_number]; for (uint8_t i = 0; i < he->heat_exchanger_type_data_size; ++i) { printf("%d. %s\n", i + 1, he->heat_exchanger_type_data[i].part_number_description); diff --git a/heat_exchander_airflow_pressure_drop.exe b/heat_exchander_airflow_pressure_drop.exe index 6d6de91..1e14d7e 100755 Binary files a/heat_exchander_airflow_pressure_drop.exe and b/heat_exchander_airflow_pressure_drop.exe differ