zvecr 4 лет назад
Родитель
Сommit
194d6d65be

+ 4 - 4
tmk_core/protocol/chibios/usb_main.c

@@ -1155,10 +1155,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void
 }
 
 void xap_broadcast(uint8_t type, const void *data, size_t length) {
-    uint8_t                rdata[XAP_EPSIZE] = {0};
-    xap_broadcast_header_t *header           = (xap_broadcast_header_t *)&rdata[0];
-    header->token                            = XAP_BROADCAST_TOKEN;
-    header->type                             = type;
+    uint8_t                 rdata[XAP_EPSIZE] = {0};
+    xap_broadcast_header_t *header            = (xap_broadcast_header_t *)&rdata[0];
+    header->token                             = XAP_BROADCAST_TOKEN;
+    header->type                              = type;
 
     if (length > (XAP_EPSIZE - sizeof(xap_broadcast_header_t))) return;
 

+ 4 - 4
tmk_core/protocol/lufa/lufa.c

@@ -261,10 +261,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void
 }
 
 void xap_broadcast(uint8_t type, const void *data, size_t length) {
-    uint8_t                rdata[XAP_EPSIZE] = {0};
-    xap_broadcast_header_t *header           = (xap_broadcast_header_t *)&rdata[0];
-    header->token                            = XAP_BROADCAST_TOKEN;
-    header->type                             = type;
+    uint8_t                 rdata[XAP_EPSIZE] = {0};
+    xap_broadcast_header_t *header            = (xap_broadcast_header_t *)&rdata[0];
+    header->token                             = XAP_BROADCAST_TOKEN;
+    header->type                              = type;
 
     if (length > (XAP_EPSIZE - sizeof(xap_broadcast_header_t))) return;
 

+ 4 - 4
tmk_core/protocol/vusb/vusb.c

@@ -222,10 +222,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void
 }
 
 void xap_broadcast(uint8_t type, const void *data, size_t length) {
-    uint8_t                rdata[XAP_BUFFER_SIZE] = {0};
-    xap_broadcast_header_t *header           = (xap_broadcast_header_t *)&rdata[0];
-    header->token                            = XAP_BROADCAST_TOKEN;
-    header->type                             = type;
+    uint8_t                 rdata[XAP_BUFFER_SIZE] = {0};
+    xap_broadcast_header_t *header                 = (xap_broadcast_header_t *)&rdata[0];
+    header->token                                  = XAP_BROADCAST_TOKEN;
+    header->type                                   = type;
 
     if (length > (XAP_BUFFER_SIZE - sizeof(xap_broadcast_header_t))) return;