Sending and reception of big data file (1kB example)
Dependencies: modem_ref_helper CRC DebouncedInterrupt
Revision 16:2990b7d21ca2, committed 2021-02-17
- Comitter:
- Jeej
- Date:
- Wed Feb 17 11:23:03 2021 +0000
- Parent:
- 15:9a9cfb0c3c4e
- Commit message:
- Restored button.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Feb 17 11:11:23 2021 +0000 +++ b/main.cpp Wed Feb 17 11:23:03 2021 +0000 @@ -84,8 +84,7 @@ // Wait for button press PRINT("Press user button to send file. (%d bytes)\n", output_length); - //button_user.acquire(); - osDelay(5000); + button_user.acquire(); // Update file CRC (Calculate CRC on string without end of string) output->crc = crc32((char*)output->data, output_length - 1);