This is needed to work with the latest upstream nuttx

This commit is contained in:
David Sidrane
2016-06-20 13:54:31 -10:00
parent fee413d40f
commit 1d5f1596fa
@@ -109,12 +109,12 @@ struct CriticalSectionLocker
const irqstate_t flags_;
CriticalSectionLocker()
: flags_(irqsave())
: flags_(enter_critical_section())
{ }
~CriticalSectionLocker()
{
irqrestore(flags_);
leave_critical_section(flags_);
}
};