tanjera / infirmary-integrated

Medical device simulator for training healthcare professionals.
http://www.infirmary-integrated.com/
Other
44 stars 5 forks source link

Bug: "Apply Parameters" on Patient Editor kicks Defibrillator out of Pacing mode. #52

Closed tanjera closed 5 years ago

tanjera commented 5 years ago

Does this happen with DeviceIABP as well?

Does calling "Apply Parameters" create a new Patient() and wipe the old data? Or is it just calling Patient.SetTimers()?

tanjera commented 5 years ago

Cause: Button "Apply Parameters" updates patient parameters (vital signs) and calls SetTimers(). SetTimers() was stopping timerPacemaker. Just needs changing to .Reset() instead of .Stop.

tanjera commented 5 years ago

Fixed in 95b4c1d16150ef9cf1f9d5cdff046bb26bb834fc