Skip to content

Commit

Permalink
FIX:修复裁判系统转发数据长度错误
Browse files Browse the repository at this point in the history
  • Loading branch information
brody.zhang committed Apr 26, 2019
1 parent 4c44e9b commit 651a7c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified MDK-ARM/bin/infantry.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion application/infantry_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void infantry_cmd_task(void const *argument)
int32_t student_data_transmit(uint8_t *buff, uint16_t len)
{
uint16_t cmd_id = *(uint16_t *)buff;
referee_protocol_tansmit(cmd_id, buff + 2, len);
referee_protocol_tansmit(cmd_id, buff + 2, len - 2);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion application/infantry_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "sys.h"

#define FIRMWARE_VERSION_0 2u
#define FIRMWARE_VERSION_0 5u
#define FIRMWARE_VERSION_1 1u
#define FIRMWARE_VERSION_2 0u
#define FIRMWARE_VERSION_3 1u
Expand Down

0 comments on commit 651a7c3

Please sign in to comment.