We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e62f8eb commit ac822c1Copy full SHA for ac822c1
doc/introduction.rst
@@ -33,7 +33,7 @@ A custom variable array can be accessed as a parameter by applying the following
33
.. code-block:: c
34
35
uint8_t _state[2];
36
- void state_cb(param_t * param, int index);
+ void state_cb(const param_t * param, int index);
37
PARAM_DEFINE_STATIC_RAM(PARAMID_STATE, state, PARAM_TYPE_UINT8, \
38
sizeof(_state)/sizeof(_state[0]), sizeof(_state[0]), PM_TELEM, state_cb, NULL, \
39
&_state[0], "0 = idle, 1 = waiting, 2 = running");
0 commit comments