From 14683da3327e6c950cd24cabc58224e0ad7bc69a Mon Sep 17 00:00:00 2001 From: emb Date: Fri, 9 Aug 2013 18:39:29 -0700 Subject: [PATCH] bfin control rate processing looks good --- bfin/src/spi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bfin/src/spi.c b/bfin/src/spi.c index c4b77992..18e88f53 100644 --- a/bfin/src/spi.c +++ b/bfin/src/spi.c @@ -21,6 +21,7 @@ static pval pv; //------ static functions static void spi_set_param(u32 idx, pval pv) { // module_set_param(idx, pv); + TOGGLE_LED4; ctl_param_change(idx, pv.u); } @@ -93,12 +94,10 @@ u8 spi_process(u8 rx) { case eSetParamData3 : // byte-swap from BE on avr32 gModuleData->paramData[idx].value.asByte[0] = rx; - gModuleData->paramData[idx].changed = 1; // done -> mark changed + // FIXME: not really using this flag. should just remove it + // gModuleData->paramData[idx].changed = 1; // done -> mark changed pv.s = gModuleData->paramData[idx].value.asInt; - /// fixme: i guess this is dumb, - /// should be more elegant use of param desc/data/changeflag spi_set_param(idx, pv); - TOGGLE_LED4; byte = eCom; //reset return 0; // don't care break;