Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed wolfSSL
Fork of sd_duplicator by
Diff: main.cpp
- Revision:
- 2:166e98bcd1cc
- Parent:
- 1:7827a11dc627
- Child:
- 3:57cbfc7d9b62
--- a/main.cpp Tue Nov 29 14:46:28 2016 +0000
+++ b/main.cpp Wed Nov 30 20:19:24 2016 +0000
@@ -3,7 +3,7 @@
#include "Crypto.h"
DigitalOut led1(LED1);
-
+DigitalOut led4(LED4);
int main()
{
SDBlock original(p5, p6, p7, p22);
@@ -30,12 +30,12 @@
{
printf("%d\n", r);
}
- const int rd2 = original.disk_write(buffer, i, 1);
+ const int rd2 = duplicate.disk_write(buffer, i, 1);
if (rd2 != 0)
{
printf("%d\n", rd2);
}
- if(i % 100 == 0)
+ if(i % 1000 == 0)
{
//status update
double percentage = (i/s) * 100;
@@ -49,6 +49,8 @@
}
}
printf("finished");
+ led1=1;
+ led4=1;
// printf("%d\n", r);
//printf("%d\n", buffer);
