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: FreescaleIAP SimpleDMA eeprom mbed-rtos mbed
Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by
Diff: cdms_sd.h
- Revision:
- 296:ec1317ab9c50
- Parent:
- 295:699801854b71
- Child:
- 297:7cc868888d56
--- a/cdms_sd.h Sun Aug 28 13:53:42 2016 +0000
+++ b/cdms_sd.h Sun Aug 28 14:47:38 2016 +0000
@@ -647,6 +647,7 @@
{
// set write address for single block (CMD24)
if (cmd(24, block_number * cdv) != 0) {
+ CDMS_WR_SD_FAULT_COUNTER++;
return 1;
}
@@ -679,6 +680,7 @@
if ((spi.write(0xFF) & 0x1F) != 0x05) {
cs_sd = 1;
spi.write(0xFF);
+ CDMS_WR_SD_FAULT_COUNTER++;
return 1;
}
