Revert "update"

This reverts commit cc4d898114.
This commit is contained in:
2025-01-20 15:25:51 +08:00
parent 9f615ba3a3
commit ac74c30923
4 changed files with 45 additions and 89 deletions

View File

@@ -35,20 +35,9 @@ typedef enum
VALIDATION_LENGTH_ERROR = 8
} validation_result_t;
typedef enum
{
PS_LEN = 0,
PS_TYPE,
PS_PAYLOAD,
PS_CRC,
PS_NULL
} packet_state;
/******************************************************************************/
// void process_command(uint8_t* cmd, size_t length);
void process_command(void);
void process_command(uint8_t* cmd, size_t length);
uint8_t calculate_crc(uint8_t data[], uint8_t data_length);
@@ -64,8 +53,4 @@ void gd60914_tempture_report(void);
void ultrasonic_distance_report(void);
void process_printer(void);
void get_command (void);
#endif //RS485_PROTOCOL_H