Browse Source

light: value adjustment only works with integers (#2566)

pull/2569/head
davebuk 1 year ago
committed by GitHub
parent
commit
68310b6d46
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      code/espurna/light.cpp

+ 5
- 0
code/espurna/light.cpp View File

@ -1571,6 +1571,11 @@ String _lightGroupPayload() {
// +offset, -offset or the new value
long _lightAdjustValue(long value, espurna::StringView operation) {
const auto dot = std::find(operation.begin(), operation.end(), '.');
if (dot != operation.end()) {
operation = espurna::StringView(operation.begin(), dot);
}
if (operation.length()) {
switch (operation[0]) {
case '+':


Loading…
Cancel
Save