mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Refactor
This commit is contained in:
parent
173d5056a5
commit
179466eae4
1 changed files with 2 additions and 4 deletions
|
|
@ -88,10 +88,8 @@ static void setup_err_evt(uvm32_state_t *vmst, uvm32_evt_t *evt) {
|
|||
}
|
||||
|
||||
static void setStatus(uvm32_state_t *vmst, uvm32_status_t newStatus) {
|
||||
if (vmst->_status == UVM32_STATUS_ERROR) {
|
||||
// always stay in error state until a uvm32_init()
|
||||
return;
|
||||
} else {
|
||||
if (vmst->_status != UVM32_STATUS_ERROR) {
|
||||
// always stay in error state until a uvm32_init() / uvm32_clearError()
|
||||
vmst->_status = newStatus;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue