From 575c8e8dec6d1f544debe867ebc0bde051209c17 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 20 Aug 2013 20:24:00 +0200 Subject: [PATCH] fix data type of the "response" field (https://dev.openwrt.org/ticket/14062) --- switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, }; -- 2.11.0