Skip to content

Commit

Permalink
Merge branch 'constness' into 'main'
Browse files Browse the repository at this point in the history
Fixed constness of std::span

See merge request bolderflight/software/pwm!10
  • Loading branch information
flybrianfly committed May 10, 2021
2 parents 5f76472 + 03a87f0 commit 40ea2b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v4.0.1
- Fixed constness of std::span

## v4.0.0
- Updated to conform to the Effector interface

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (DEFINED MCU)
endif()
# Project information
project(Pwm
VERSION 4.0.0
VERSION 4.0.1
DESCRIPTION "PWM actuator library"
LANGUAGES CXX
)
Expand Down
2 changes: 1 addition & 1 deletion include/pwm/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PwmTx {
}
return true;
}
void Cmd(std::span<float> cmds) {
void Cmd(std::span<const float> cmds) {
std::size_t len = std::min(cmds.size(), N);
for (std::size_t i = 0; i < len; i++) {
/* Saturation */
Expand Down

0 comments on commit 40ea2b4

Please sign in to comment.