Tsungta Wu
/
mbed_SPIS_multiByte_example_SOG
fork from Sog
Fork of mbed_SPIS_multiByte_example_SOG by
Diff: main.cpp
- Revision:
- 2:c520d7c7739d
- Parent:
- 1:58f0712d9aa2
- Child:
- 4:8e796b751cd3
--- a/main.cpp Wed May 31 07:39:37 2017 +0000 +++ b/main.cpp Wed May 31 09:30:53 2017 +0000 @@ -7,9 +7,10 @@ int main() { uart.printf("START!"); device.format(8,1); - + + device.reply((uint8_t*)"xyz", 3); while(1) { - if(device.receive()) { + if(device.receive(3)) { int v = device.read(); // Read byte from master uart.printf("v = %s ", v);