Remove unused SetError(), SetGenericError, and SetResponseByte() functions.

This commit is contained in:
László Monda
2017-11-09 01:17:50 +01:00
parent 21c1ded972
commit e5865009f5

View File

@@ -14,25 +14,6 @@
i2c_message_t RxMessage;
i2c_message_t TxMessage;
void SetError(uint8_t error);
void SetGenericError(void);
void SetResponseByte(uint8_t response);
void SetError(uint8_t error) {
TxMessage.data[0] = error;
}
void SetGenericError(void)
{
SetError(PROTOCOL_RESPONSE_GENERIC_ERROR);
}
// Set a single byte as the response.
void SetResponseByte(uint8_t response)
{
TxMessage.data[1] = response;
}
void SlaveRxHandler(void)
{
if (!CRC16_IsMessageValid(&RxMessage)) {