Paul's baseline branch
Fork of SDFileSystem by
Diff: SDFileSystem.cpp
- Revision:
- 29:3636c9ed935d
- Parent:
- 26:923df4ee70c4
--- 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; }