Prusa MINI Firmware overview
selftest.c File Reference
#include "selftest.h"

Functions

int wizard_selftest_is_ok (int16_t id_body, selftest_data_t *p_data)
 

Function Documentation

◆ wizard_selftest_is_ok()

int wizard_selftest_is_ok ( int16_t  id_body,
selftest_data_t p_data 
)
5  {
6  int ok = 1;
7  ok &= (p_data->fans_axis_data.state_fan0 == _TEST_PASSED);
8  ok &= (p_data->fans_axis_data.state_fan1 == _TEST_PASSED);
9  ok &= (p_data->fans_axis_data.state_x == _TEST_PASSED);
10  ok &= (p_data->fans_axis_data.state_y == _TEST_PASSED);
11  ok &= (p_data->fans_axis_data.state_z == _TEST_PASSED);
12  ok &= (p_data->home_data.state_home == _TEST_PASSED);
13  ok &= (p_data->cool_data.state_cool == _TEST_PASSED);
14  ok &= (p_data->temp_data.state_temp_nozzle == _TEST_PASSED);
15  ok &= (p_data->temp_data.state_temp_bed == _TEST_PASSED);
16  ok &= (p_data->temp_data.state_preheat_bed == _TEST_PASSED);
17  ok &= (p_data->temp_data.state_preheat_nozzle == _TEST_PASSED);
18  return ok;
19 }
Here is the caller graph for this function:
selftest_fans_axis_data_t::state_y
_TEST_STATE_t state_y
Definition: selftest_fans_axis.h:42
selftest_fans_axis_data_t::state_z
_TEST_STATE_t state_z
Definition: selftest_fans_axis.h:43
selftest_data_t::home_data
selftest_home_data_t home_data
Definition: selftest.h:23
selftest_temp_data_t::state_preheat_nozzle
_TEST_STATE_t state_preheat_nozzle
Definition: selftest_temp.h:29
selftest_cool_data_t::state_cool
_TEST_STATE_t state_cool
Definition: selftest_cool.h:32
selftest_data_t::fans_axis_data
selftest_fans_axis_data_t fans_axis_data
Definition: selftest.h:26
selftest_temp_data_t::state_preheat_bed
_TEST_STATE_t state_preheat_bed
Definition: selftest_temp.h:30
selftest_fans_axis_data_t::state_x
_TEST_STATE_t state_x
Definition: selftest_fans_axis.h:41
selftest_home_data_t::state_home
_TEST_STATE_t state_home
Definition: selftest_home.h:27
selftest_data_t::cool_data
selftest_cool_data_t cool_data
Definition: selftest.h:24
selftest_fans_axis_data_t::state_fan0
_TEST_STATE_t state_fan0
Definition: selftest_fans_axis.h:39
selftest_fans_axis_data_t::state_fan1
_TEST_STATE_t state_fan1
Definition: selftest_fans_axis.h:40
selftest_data_t::temp_data
selftest_temp_data_t temp_data
Definition: selftest.h:25
selftest_temp_data_t::state_temp_bed
_TEST_STATE_t state_temp_bed
Definition: selftest_temp.h:32
_TEST_PASSED
Definition: wizard_types.h:87
selftest_temp_data_t::state_temp_nozzle
_TEST_STATE_t state_temp_nozzle
Definition: selftest_temp.h:31