mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-11 04:28:58 +00:00
Ensures no attempt to call nullptr
.
This commit is contained in:
parent
47dd8ad069
commit
e1ebb7ce9c
@ -707,7 +707,7 @@ class ConcreteMachine:
|
|||||||
|
|
||||||
// b4: cassette motor relay
|
// b4: cassette motor relay
|
||||||
tape_player_.set_motor_control(!(value & 0x10));
|
tape_player_.set_motor_control(!(value & 0x10));
|
||||||
activity_observer_->set_led_status("Tape motor", !(value & 0x10));
|
if(activity_observer_) activity_observer_->set_led_status("Tape motor", !(value & 0x10));
|
||||||
|
|
||||||
// b7: keyboard click
|
// b7: keyboard click
|
||||||
bool new_audio_level = !!(value & 0x80);
|
bool new_audio_level = !!(value & 0x80);
|
||||||
|
Loading…
Reference in New Issue
Block a user