Paul's baseline branch

Dependents:   Multi-FileSystem

Fork of SDFileSystem by David Smart

Files at this revision

API Documentation at this revision

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;
     }