Skip to content

Commit

Permalink
Cmd: formatAttribute() fix for type 0x30/enum8
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Nov 28, 2023
1 parent 724860f commit ee94691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/class/AbeilleCmdProcess.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ function formatAttribute($valIn, $type) {
case '10':
case '18': // map8
case '20': // uint8
case '30': // enum8
$valOut = sprintf("%02X", $valIn);
break;
case 'uint16':
case '21':
case '31': // enum16
$valOut = sprintf("%04X", $valIn);
break;
case 'uint24':
Expand Down
1 change: 1 addition & 0 deletions docs/fr_FR/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ChangeLog
- 'TRADFRIbulbE27WSopal1000lm' => 'Ikea-BulbE27',
- 'TRADFRIbulbE27WW806lm' => 'Ikea-BulbE27',
- Interne: Cmd: Mise-à-jour formatAttribute().
- Interne: Cmd: Correction formatAtrtibute() pour type 0x30/enum8.

231127-BETA-3
-------------
Expand Down

0 comments on commit ee94691

Please sign in to comment.