Skip to content

Commit 9acabc0

Browse files
committed
fix: rpc and client not compiling
1 parent 060401f commit 9acabc0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RPCClient {
3333
MsgPack::Unpacker unpacker;
3434

3535
// blocking call
36-
while (!recv_msg(transport, unpacker)){delay(1)};
36+
while (!recv_msg(transport, unpacker)){delay(1);}
3737

3838
int r_msg_type;
3939
int r_msg_id;

src/rpc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
uint8_t raw_buffer[MAX_BUFFER_SIZE] = {0};
1515
size_t raw_buffer_fill = 0;
1616

17+
inline void flush_buffer(){
18+
raw_buffer_fill = 0;
19+
}
20+
1721
inline void send_msg(ITransport& transport, const MsgPack::bin_t<uint8_t>& buffer) {
1822
size_t size = buffer.size();
1923

@@ -51,8 +55,4 @@ inline bool recv_msg(ITransport& transport, MsgPack::Unpacker& unpacker) {
5155

5256
}
5357

54-
inline void flush_buffer(){
55-
raw_buffer_fill = 0;
56-
}
57-
5858
#endif //RPCLITE_RPC_H

0 commit comments

Comments
 (0)