]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change is color simple compare
authorBastian Dehn <hhaalo@arcor.de>
Mon, 10 Nov 2025 18:14:57 +0000 (19:14 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 10 Nov 2025 18:14:57 +0000 (19:14 +0100)
src/kds_s2000w_handler.c

index a00ad919002166c28decd11ddf966fb9790f2e16..a725c83021dcb72aa6dd951c3b75d01fbabe67a0 100644 (file)
@@ -84,10 +84,7 @@ uint32_t _kds_s2000w_handler_is_color(const handler_t* h)
        json_object* color_mode = json_object_object_get(h->scanner_config, "ColorMode");
        const char* color_value = json_object_get_string(color_mode);
 
-       if (strcmp(color_value, "Color") == 0)
-               return 1;
-
-       return 0;
+       return strcmp(color_value, "Color") == 0;
 }
 
 blobdata_t* _kds_s2000w_handler_move_image(handler_t* h)