mirror of https://github.com/ARMmbed/mbed-os.git
Convert case_control to a POD.
parent
7a6edda44c
commit
4bf28d474c
|
@ -36,7 +36,7 @@ namespace
|
|||
|
||||
const Case *case_current = NULL;
|
||||
size_t case_index = 0;
|
||||
control_t case_control = control_t(REPEAT_SETUP_TEARDOWN);
|
||||
base_control_t case_control = { REPEAT_SETUP_TEARDOWN, TIMEOUT_UNDECLR };
|
||||
size_t case_repeat_count = 1;
|
||||
|
||||
void *case_timeout_handle = NULL;
|
||||
|
|
|
@ -207,14 +207,6 @@ namespace v1 {
|
|||
return timeout;
|
||||
}
|
||||
|
||||
operator base_control_t() const {
|
||||
base_control_t result = {
|
||||
repeat,
|
||||
timeout
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
private:
|
||||
static base_control_t make_base_control_t(repeat_t repeat, uint32_t timeout) {
|
||||
base_control_t result = {
|
||||
|
|
Loading…
Reference in New Issue