Skip to content

Commit

Permalink
Update configuration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Mar 11, 2024
1 parent 9af0d12 commit ae7db3f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugin_info/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@
<option value="none">{{Aucun}}</option>
<option value="auto">{{Auto}}</option>
<option value="gateway">{{Passerelle distante}}</option>
<option value="/dev/ttyS2">{{Atlas (/dev/ttyS2)}}</option>
<option value="/dev/ttyLuna-Zigbee">{{Luna Zigbee (/dev/ttyLuna-Zigbee)}}</option>
<?php
<?php
if(file_exists('/dev/ttyS2')){
echo ' <option value="/dev/ttyS2">{{Atlas (/dev/ttyS2)}}</option>';
}
if(file_exists('/dev/ttyLuna-Zigbee')){
echo '<option value="/dev/ttyLuna-Zigbee">{{Luna Zigbee (/dev/ttyLuna-Zigbee)}}</option>';
}
foreach (jeedom::getUsbMapping() as $name => $value) {
if(isset($findPort[$value])){
continue;
Expand Down

0 comments on commit ae7db3f

Please sign in to comment.