Compare commits
No commits in common. "277b28d7f511e0e889c9a8e72d3169afda53c32b" and "4e9b28ce15b8772727445b758d4c9f5c94509369" have entirely different histories.
277b28d7f5
...
4e9b28ce15
@ -86,7 +86,7 @@ enum analog_value_monitor {
|
||||
|
||||
|
||||
/**
|
||||
* @brief Key used to lock the safety flags from external ack'ing
|
||||
* @brief Key used to lock the safefety flags from external ack'ing
|
||||
*/
|
||||
#define MEAS_ADC_SAFETY_FLAG_KEY 0xe554dac3UL
|
||||
|
||||
|
@ -130,10 +130,8 @@ static bool mount_sd_card_if_avail(bool mounted)
|
||||
if (!sdio_check_inserted() && !mounted && inserted_counter > 4) {
|
||||
inserted_counter = 0;
|
||||
res = f_mount(fs_ptr, "0:/", 1);
|
||||
if (res == FR_OK) {
|
||||
led_set(1, 1);
|
||||
if (res == FR_OK)
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
@ -219,10 +217,15 @@ int main(void)
|
||||
while (1) {
|
||||
|
||||
if (systick_ticks_have_passed(quarter_sec_timestamp, 250)) {
|
||||
led_set(1, 0);
|
||||
sd_old = sd_card_mounted;
|
||||
sd_card_mounted = mount_sd_card_if_avail(sd_card_mounted);
|
||||
|
||||
if (sd_old != sd_card_mounted) {
|
||||
led_set(0, 1);
|
||||
} else {
|
||||
led_set(0, 0);
|
||||
}
|
||||
|
||||
if (sd_card_mounted && !sd_old) {
|
||||
adc_pt1000_get_resistance_calibration(NULL, NULL, &cal_active);
|
||||
if (!cal_active) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user