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.
Fork of SDFileSystem by
Revision 29:3636c9ed935d, committed 2017-06-01
- Comitter:
- WiredHome
- Date:
- Thu Jun 01 11:38:17 2017 +0000
- Parent:
- 28:12c98ea76534
- Commit message:
- change an allocation.
Changed in this revision
SDFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SDFileSystem.cpp Sun Sep 25 19:41:05 2016 +0000 +++ b/SDFileSystem.cpp Thu Jun 01 11:38:17 2017 +0000 @@ -43,19 +43,19 @@ if (cdtype == SWITCH_POS_NO) { m_Cd.mode(PullDown); m_CdAssert = 1; - m_Cd.fall(this, &SDFileSystem::onCardRemoval); + m_Cd.fall(callback(this, &SDFileSystem::onCardRemoval)); } else if (cdtype == SWITCH_POS_NC) { m_Cd.mode(PullDown); m_CdAssert = 0; - m_Cd.rise(this, &SDFileSystem::onCardRemoval); + m_Cd.rise(callback(this, &SDFileSystem::onCardRemoval)); } else if (cdtype == SWITCH_NEG_NO) { m_Cd.mode(PullUp); m_CdAssert = 0; - m_Cd.rise(this, &SDFileSystem::onCardRemoval); + m_Cd.rise(callback(this, &SDFileSystem::onCardRemoval)); } else if (cdtype == SWITCH_NEG_NC) { m_Cd.mode(PullUp); m_CdAssert = 1; - m_Cd.fall(this, &SDFileSystem::onCardRemoval); + m_Cd.fall(callback(this, &SDFileSystem::onCardRemoval)); } else { m_CdAssert = -1; }