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: SDFileSystem max32630fthr USBDevice
Fork of FTHR_SD_Demo by
Diff: main.cpp
- Revision:
- 12:aa9fff0aec91
- Parent:
- 11:94a7379c0db8
- Child:
- 13:674c647d12dd
--- a/main.cpp Tue Jul 03 15:59:51 2018 +0000
+++ b/main.cpp Tue Jul 03 16:41:47 2018 +0000
@@ -1050,10 +1050,10 @@
apply_settings_file(device_logged, log_interval);
//************* init ticker timer callbacks ****************
- timer_1.attach(&LED_blink_callback,1.0); //start ticker, once per sec.
+ timer_1.attach(&LED_blink_callback,0.5); //start ticker, once per sec.
- i2c.frequency(400000); //set I2C clock to 100kHz
+ i2c.frequency(400000); //set I2C clock to 400kHz
//wait(1); //wait 1 sec for USB serial port to init.
@@ -1172,7 +1172,7 @@
if(rx_buff[rx_index] == CR){
//db.printf("\r\n");
- pc.printf("\r\n");
+ //pc.printf("\r\n");
rx_buff[++rx_index] = 0;
//db.printf("%s\r\n",rx_buff);
//pc.printf("%s\r\n",rx_buff);
@@ -1229,11 +1229,11 @@
break;
case 'f':
case 'F': //f is for "flash" for microSD
- /*if(!SDDetect)
+ if(!SDDetect)
pc.printf("y\r\n");
else
- pc.printf("n\r\n");*/
- apply_settings_file(device_logged, log_interval);
+ pc.printf("n\r\n");
+ /*apply_settings_file(device_logged, log_interval);
pc.printf("Interval: %d\r\n", log_interval);
bool no_devices = true;
for(i = 0; i < MAX_DEVICES; i ++)
@@ -1246,7 +1246,7 @@
}
if(no_devices)
- pc.printf("No devices being logged.\r\n", i);
+ pc.printf("No devices being logged.\r\n", i);*/
break;
case 'g':
case 'G':
