Skip to content

Commit ac822c1

Browse files
committed
Updated const example
1 parent e62f8eb commit ac822c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A custom variable array can be accessed as a parameter by applying the following
3333
.. code-block:: c
3434
3535
uint8_t _state[2];
36-
void state_cb(param_t * param, int index);
36+
void state_cb(const param_t * param, int index);
3737
PARAM_DEFINE_STATIC_RAM(PARAMID_STATE, state, PARAM_TYPE_UINT8, \
3838
sizeof(_state)/sizeof(_state[0]), sizeof(_state[0]), PM_TELEM, state_cb, NULL, \
3939
&_state[0], "0 = idle, 1 = waiting, 2 = running");

0 commit comments

Comments
 (0)