mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Make crc8 const-correct (#7027)
This commit is contained in:
@@ -93,7 +93,7 @@ std::string to_string(long double value) { return str_snprintf("%Lf", 32, value)
|
||||
// Mathematics
|
||||
|
||||
float lerp(float completion, float start, float end) { return start + (end - start) * completion; }
|
||||
uint8_t crc8(uint8_t *data, uint8_t len) {
|
||||
uint8_t crc8(const uint8_t *data, uint8_t len) {
|
||||
uint8_t crc = 0;
|
||||
|
||||
while ((len--) != 0u) {
|
||||
|
||||
Reference in New Issue
Block a user