summaryrefslogtreecommitdiff
path: root/src/modules/plato
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-01-21 11:02:48 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-01-21 12:51:53 -0800
commit68347e96bbac8c60b32895c5214487f58990fea3 (patch)
treeae09d99a36c9faa43b8c6adaaa71bdb403b4a385 /src/modules/plato
parent5e647dee95763d8f628bdc771a32c5d33c51d78a (diff)
til_tap: introduce til_tap_t.owner
We need a way to identify owners of taps when cleaning up their containing contexts, especially once they're hanging off streams.
Diffstat (limited to 'src/modules/plato')
-rw-r--r--src/modules/plato/plato.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c
index c8977bf..259d5b0 100644
--- a/src/modules/plato/plato.c
+++ b/src/modules/plato/plato.c
@@ -640,8 +640,8 @@ static til_module_context_t * plato_create_context(const til_module_t *module, t
ctxt->setup = *((plato_setup_t *)setup);
- ctxt->taps.spin_rate = til_tap_init_float(&ctxt->spin_rate, 1, &ctxt->setup.spin_rate, "spin_rate");
- ctxt->taps.orbit_rate = til_tap_init_float(&ctxt->orbit_rate, 1, &ctxt->setup.orbit_rate, "orbit_rate");
+ ctxt->taps.spin_rate = til_tap_init_float(ctxt, &ctxt->spin_rate, 1, &ctxt->setup.spin_rate, "spin_rate");
+ ctxt->taps.orbit_rate = til_tap_init_float(ctxt, &ctxt->orbit_rate, 1, &ctxt->setup.orbit_rate, "orbit_rate");
return &ctxt->til_module_context;
}
© All Rights Reserved