Skip to content
Snippets Groups Projects
Commit c686b7cf authored by rahix's avatar rahix
Browse files

docs(*): Add versionadded directives where applicable


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent dec0073e
No related branches found
No related tags found
1 merge request!394Update CHANGELOG and Documentation
Pipeline #4684 passed
...@@ -970,7 +970,7 @@ struct max86150_sensor_data { ...@@ -970,7 +970,7 @@ struct max86150_sensor_data {
* - ``-EINVAL``: config->ppg_sample_rate is not one of 10, 20, 50, 84, 100, 200 * - ``-EINVAL``: config->ppg_sample_rate is not one of 10, 20, 50, 84, 100, 200
* or config_size is not size of config. * or config_size is not size of config.
* *
* .. versionadded:: 1.13 * .. versionadded:: 1.16
*/ */
API(API_MAX86150_ENABLE, int epic_max86150_enable_sensor(struct max86150_sensor_config *config, size_t config_size)); API(API_MAX86150_ENABLE, int epic_max86150_enable_sensor(struct max86150_sensor_config *config, size_t config_size));
...@@ -979,7 +979,7 @@ API(API_MAX86150_ENABLE, int epic_max86150_enable_sensor(struct max86150_sensor_ ...@@ -979,7 +979,7 @@ API(API_MAX86150_ENABLE, int epic_max86150_enable_sensor(struct max86150_sensor_
* *
* :returns: 0 in case of success or forward negative error value from stream_deregister. * :returns: 0 in case of success or forward negative error value from stream_deregister.
* *
* .. versionadded:: 1.13 * .. versionadded:: 1.16
*/ */
API(API_MAX86150_DISABLE, int epic_max86150_disable_sensor()); API(API_MAX86150_DISABLE, int epic_max86150_disable_sensor());
......
...@@ -104,7 +104,7 @@ def flash_rocket(led, value, millis): ...@@ -104,7 +104,7 @@ def flash_rocket(led, value, millis):
:param int value: brightness value (0 < value < 32) :param int value: brightness value (0 < value < 32)
:param int millis: duration of the rocket being on in milliseconds. :param int millis: duration of the rocket being on in milliseconds.
.. versionadded:: 1.?? .. versionadded:: 1.16
""" """
return sys_leds.flash_rocket(led, value, millis) return sys_leds.flash_rocket(led, value, millis)
......
...@@ -22,6 +22,8 @@ class MAX86150: ...@@ -22,6 +22,8 @@ class MAX86150:
print("Red: {} Infrared: {} ECG: {}", sample.red, sample.infrared, sample.ecg) print("Red: {} Infrared: {} ECG: {}", sample.red, sample.infrared, sample.ecg)
m.close() m.close()
.. versionadded:: 1.16
""" """
def __init__(self, callback=None, sample_buffer_len=128, sample_rate=200): def __init__(self, callback=None, sample_buffer_len=128, sample_rate=200):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment