From cd63dd661ca49ca540b349dc71de9691b252a7ba Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 1 Dec 2014 19:04:59 +0100 Subject: [PATCH] Whitespace fixes --- rpp/blocks/sfunction_din.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rpp/blocks/sfunction_din.c b/rpp/blocks/sfunction_din.c index 9669e65..e5b37b7 100644 --- a/rpp/blocks/sfunction_din.c +++ b/rpp/blocks/sfunction_din.c @@ -46,11 +46,11 @@ Description: &desc | This block allows to read the digital inputs on the RPP board. For pins number 0-7 is not relevant and not visible parameter 'Use variable threshold' and only one block for each pin can be in model. And oppositely for other pins (8-15) are not relevant and visible parameters - of names 'Pull' and 'Active'. The variable threshold check change the read mode of the pin. For - setting it see Digital Input Configure block. - The ErrFlag should raise if `rpp_din_update()` or `rpp_din_get()` returns error. `rpp_din_update()` - is called just by the first DIN block in the model and thus only the first block could raise the - flag because of this. In case an errors occurs the return value will always be LOW (0). Because the + of names 'Pull' and 'Active'. The variable threshold check change the read mode of the pin. For + setting it see Digital Input Configure block. + The ErrFlag should raise if `rpp_din_update()` or `rpp_din_get()` returns error. `rpp_din_update()` + is called just by the first DIN block in the model and thus only the first block could raise the + flag because of this. In case an errors occurs the return value will always be LOW (0). Because the ErrFlag should never set, once set the following steps will never clear it back. Help: *desc @@ -128,12 +128,12 @@ static void mdlCheckParameters(SimStruct *S) if (!rppValidParamBoolean(S, 1)) { return; } - + /* Check the parameter 3 */ if (!rppValidParamRange(S, 2, 0, 2)) { return; } - + /* Check the parameter 4 */ if (!rppValidParamRange(S, 3, 0, 2)) { return; @@ -156,10 +156,10 @@ static void mdlSetWorkWidths(SimStruct *S) /* Register the run-time parameter 2 */ ssRegDlgParamAsRunTimeParam(S, 1, 1, "p2", SS_BOOLEAN); - + /* Register the run-time parameter 3 */ ssRegDlgParamAsRunTimeParam(S, 2, 2, "p3", SS_UINT8); - + /* Register the run-time parameter 4 */ ssRegDlgParamAsRunTimeParam(S, 3, 3, "p4", SS_UINT8); } -- 2.39.2