Compile error if ONESHOT_TIMEOUT defined but oneshot disabled (#8100) 0.7.147
authorTed Lin <49993528+tedlinsonos@users.noreply.github.com>
Mon, 10 Feb 2020 04:50:45 +0000 (23:50 -0500)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 04:50:45 +0000 (04:50 +0000)
commitc3200aa8fcf86122736846017ca7b125ac225842
treec0d40ba00f5ea9eb4126bcf9d188859ca914aced
parent6052aa499e6fa6f2601d71b18301a76218944463
Compile error if ONESHOT_TIMEOUT defined but oneshot disabled (#8100)

* Compile error if ONESHOT_TIMEOUT defined but oneshot disabled

When ONESHOT_TIMEOUT and NO_ACTION_ONESHOT are both defined, this code
fails to compile.

Wrap the one usage of ONESHOT_TIMEOUT that is inconsistent with the
rest so all usages are properly wrapped by a check of NO_ACTION_ONESHOT.

* Run file through clang-format

Co-authored-by: Ted M Lin <tedmlin@gmail.com>
tmk_core/common/action.c