From: Felix Fietkau Date: Tue, 20 Aug 2013 18:24:00 +0000 (+0200) Subject: fix data type of the "response" field (https://dev.openwrt.org/ticket/14062) X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fusbmode.git;a=commitdiff_plain;h=575c8e8dec6d1f544debe867ebc0bde051209c17 fix data type of the "response" field (https://dev.openwrt.org/ticket/14062) --- diff --git a/switch.c b/switch.c index 9f1f3b4..763acfa 100644 --- a/switch.c +++ b/switch.c @@ -335,7 +335,7 @@ void handle_switch(struct usbdev_data *data) [DATA_INTERFACE] = { .name = "interface", .type = BLOBMSG_TYPE_INT32 }, [DATA_MSG_EP] = { .name = "msg_endpoint", .type = BLOBMSG_TYPE_INT32 }, [DATA_RES_EP] = { .name = "response_endpoint", .type = BLOBMSG_TYPE_INT32 }, - [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_INT32 }, + [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_BOOL }, [DATA_CONFIG] = { .name = "config", .type = BLOBMSG_TYPE_INT32 }, [DATA_ALT] = { .name = "alt", .type = BLOBMSG_TYPE_INT32 }, };