Skip to content

Commit e6c433e

Browse files
committed
libraries/RPC: Update examples.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent b874b41 commit e6c433e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/RPC/examples/MD5_Checksum/MD5_Checksum.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ size_t hash_out_count = 0;
77
#ifdef CORE_CM4
88
size_t data_buf_size = 0;
99
#else
10-
size_t data_buf_size = 512;
10+
size_t data_buf_size = 256;
1111
#endif
1212

1313
typedef std::vector<byte> vec_t;
@@ -59,6 +59,8 @@ void setup() {
5959
#ifdef CORE_CM4
6060
RPC.bind("set_buffer_size", set_buffer_size);
6161
#else
62+
// Introduce a brief delay to allow the M4 sufficient time
63+
// to bind this function before invoking it.
6264
delay(100);
6365
auto ret = RPC.call("set_buffer_size", data_buf_size).as<size_t>();
6466
#endif

0 commit comments

Comments
 (0)