Broken spark implementation
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "cmsis_os2.h"
|
||||
#include "global_state.h"
|
||||
#include "macros.h"
|
||||
#include "main.h"
|
||||
#include "global_state.h"
|
||||
#include "ring_buffer.h"
|
||||
#include "tasks.h"
|
||||
|
||||
@@ -18,10 +18,10 @@ void camHandler(void *argument) {
|
||||
ringBufferRead(&state_g.cam_RB, 0));
|
||||
|
||||
// FILTERS
|
||||
if (CAM_TRIGD) {
|
||||
ringBufferRevert(&state_g.cam_RB,1);
|
||||
return;
|
||||
}
|
||||
// if (CAM_TRIGD) {
|
||||
// ringBufferRevert(&state_g.cam_RB,1);
|
||||
// return;
|
||||
// }
|
||||
state_g.cam_state = CAM_TRIGD;
|
||||
state_g.cam_miss_ctr = 0;
|
||||
switch (state_g.sync_state) {
|
||||
|
||||
Reference in New Issue
Block a user