Skip to main content

save_config_with_wifi

Function save_config_with_wifi 

Source
pub fn save_config_with_wifi(
    layout: KeyboardLayout,
    theme_name: &str,
    font_names: &[String],
    enable_sound: bool,
    swap_caps_ctrl: bool,
    auto_dhcp: bool,
    wifi_ssid: &str,
    wifi_password: &str,
    custom_theme: &ThemeConfig,
    enable_custom_colors: bool,
) -> Result<(), &'static str>
Expand description

設定を WiFi 認証情報つきで保存する。

異常な引数(空のテーマ名/空のフォント名/4 件以上のフォント指定)は 1 バイトも書き込まずに Err を返す。従来は 4 件目以降を黙って捨て、 空文字も素通ししていた。