fix some bad indents

pull/9/head
Ondřej Hruška 7 years ago
parent 9a1dbe6757
commit 6d992c16cd
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 8
      TinyFrame.h

@ -132,7 +132,7 @@ typedef TF_Result (*TF_Listener)(TinyFrame *tf, TF_Msg *msg);
// -------------------------------------------------------------------
enum TFState {
enum TFState_ {
TFState_SOF = 0, //!< Wait for SOF
TFState_LEN, //!< Wait for Number Of Bytes
TFState_HEAD_CKSUM, //!< Wait for header Checksum
@ -166,6 +166,7 @@ struct TF_GenericListener_ {
struct TinyFrame_ {
/* Public user data */
union {
// choice between two representations
void *userdata;
uint32_t usertag;
};
@ -177,7 +178,7 @@ struct TinyFrame_ {
TF_ID next_id; //!< Next frame / frame chain ID
/* Parser state */
enum TFState state;
enum TFState_ state;
TF_TICKS parser_timeout_ticks;
TF_ID id; //!< Incoming packet ID
TF_LEN len; //!< Payload length
@ -304,7 +305,8 @@ bool TF_Query(TinyFrame *tf, TF_Msg *msg, TF_Listener listener, TF_TICKS timeout
/**
* Like TF_Query, but without the struct
*/
bool TF_QuerySimple(TinyFrame *tf, TF_TYPE type, const uint8_t *data, TF_LEN len, TF_Listener listener, TF_TICKS timeout);
bool TF_QuerySimple(TinyFrame *tf, TF_TYPE type, const uint8_t *data, TF_LEN len,
TF_Listener listener, TF_TICKS timeout);
/**
* Send a response to a received message.

Loading…
Cancel
Save