HAL_QURT: cope with nested cork/push

This commit is contained in:
Andrew Tridgell 2017-04-18 10:02:25 +10:00
parent 9bdb6838e6
commit 266f99db93
1 changed files with 4 additions and 2 deletions

View File

@ -116,8 +116,10 @@ void RCOutput::cork(void)
void RCOutput::push(void) void RCOutput::push(void)
{ {
need_write = true; if (corked) {
corked = false; need_write = true;
corked = false;
}
} }
#endif // CONFIG_HAL_BOARD_SUBTYPE #endif // CONFIG_HAL_BOARD_SUBTYPE