]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change unknown profile load min profile
authorBastian Dehn <hhaalo@arcor.de>
Tue, 23 Sep 2025 11:32:55 +0000 (13:32 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 23 Sep 2025 11:32:55 +0000 (13:32 +0200)
src/kds_s2000w_option_descriptors.c

index f9d258fd6f2fe432c1f4a451041abd78c7dbf6f0..c586b40e6a09a754eb36721c9bc7f060329468fb 100644 (file)
@@ -1249,11 +1249,12 @@ void kds_s2000w_option_descriptors_init(uint8_t profile)
 {
        kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_init_option_descriptors");
 
-       if (profile == PROFILE_FULL)
+       if (profile == PROFILE_FULL) {
                _kds_s2000w_option_descriptors_init_full_profile();
+               return;
+       }
 
-       if (profile == PROFILE_MIN)
-               _kds_s2000w_option_descriptors_init_min_profile();
+       _kds_s2000w_option_descriptors_init_min_profile();
 }
 
 void kds_s2000w_option_descriptors_free()