Skip to content

Commit

Permalink
Fix core_quat_prop init logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hmldns committed Dec 7, 2022
1 parent d181555 commit 3dc3170
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion f_specs/core/quat/prop/core_quat_prop_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ void core_quat_prop_exec(
const core_quat_prop_injection_t *injection
)
{
if (!state->inited || (i->optional_inputs_flags.reset && i->reset == TRUE)) {
if (i->optional_inputs_flags.reset) {
if (i->reset) {
state->inited = 0;
}
}

if (state->inited == FALSE) {
o->q = i->q0;
state->inited = 1;
} else {
Expand Down
2 changes: 1 addition & 1 deletion f_specs/core/type/bool/core_type_bool.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

typedef int32_t core_type_bool_t;

#define TRUE ((int32_t)-1)
#define TRUE ((int32_t) 1)
#define FALSE ((int32_t) 0)

#endif // FSPEC_CORE_TYPE_BOOL_H

0 comments on commit 3dc3170

Please sign in to comment.