Skip to content

Commit

Permalink
Ajout info LED
Browse files Browse the repository at this point in the history
  • Loading branch information
JEALG committed Jan 26, 2025
1 parent 618d18f commit b3de0a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/class/Free_CreateEq.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private static function createEq_Type_Box()
$has_led_strip = false;
log::add('Freebox_OS', 'info', '| :fg-info:───▶︎ ' . (__('Box compatible avec les LED rouges', __FILE__)) . '::/fg: ' . (__('Non', __FILE__)));
}
config::save('FREEBOX_LED_RD', $has_led_strip, 'Freebox_OS');
// Compatibilité mode Eco Wfi
if (isset($result['model_info']['has_eco_wifi'])) {
$has_eco_wifi = 1;
Expand Down
5 changes: 3 additions & 2 deletions core/class/Freebox_OS.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,9 @@ public static function getConfigForCommunity()
$SEARCH_PARENTAL = (__('Parental', __FILE__)) . ' [' . config::byKey('SEARCH_PARENTAL', 'Freebox_OS') . ']';
$ligne3 = 'Scans : ' . $SEARCH_EQ . ' ; ' . $SEARCH_TILES . ' ; ' . $SEARCH_PARENTAL;

$SEARCH_ECO = (__('Support mode Eco WFI', __FILE__)) . ' [' . config::byKey('FREEBOX_HAS_ECO_WFI', 'Freebox_OS') . ']';
$ligne4 = $SEARCH_ECO;
$WFI_ECO = __('Box compatible avec le mode Eco Wifi', __FILE__) . ' [' . config::byKey('FREEBOX_HAS_ECO_WFI', 'Freebox_OS') . ']';
$LED_RD = __('Box compatible avec les LED rouges', __FILE__) . ' [' . config::byKey('FREEBOX_LED_RD', 'Freebox_OS') . ']';
$ligne4 = $WFI_ECO . ' ; ' . $LED_RD;

$FreeboxInfo = '<br>```<br>' . $ligne1 . '<br>' . $ligne2 . '<br>' . $ligne3 . '<br>' . $ligne4 . '<br>``` ';
return $FreeboxInfo;
Expand Down

0 comments on commit b3de0a3

Please sign in to comment.