This is needed to work with the latest upstream nuttx

This commit is contained in:
David Sidrane
2016-04-26 14:29:55 -10:00
parent b04396ace5
commit 1cef941bc7
@@ -97,12 +97,12 @@ struct CriticalSectionLocker
const irqstate_t flags_;
CriticalSectionLocker()
: flags_(irqsave())
: flags_(enter_critical_section())
{ }
~CriticalSectionLocker()
{
irqrestore(flags_);
leave_critical_section(flags_);
}
};