Fixed bug where is_armed could be true at startup

This commit is contained in:
2021-11-03 21:22:01 -05:00
parent 2dd56f6315
commit 0235bd3859

View File

@@ -162,7 +162,8 @@ void setup() {
period_encoder.write(new_period*4);
// Check single pulse status
is_armed = !digitalRead(single_pulse_enable_pin);
single_fire_is_enabled = !digitalRead(single_pulse_enable_pin);
single_fire_is_disabled = !single_fire_is_enabled;
// Only executes this block of code if serial debug is enabled
#ifdef enable_serial_debug