Skip to content

Commit c17713d

Browse files
committed
Corrected file mode and simple comparison
1 parent 8db8bbd commit c17713d

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

samples/int_test/make.sh

100644100755
File mode changed.

samples/int_test/test.sh

100644100755
File mode changed.

samples/lcd_4bit_test/make.sh

100644100755
File mode changed.

samples/lcd_4bit_test/test.sh

100644100755
File mode changed.

src/gui.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,17 @@ void update_gui(cpu *m) {
245245
keep_going = true;
246246
break;
247247
case KEY_F(6): // F6
248-
if (!m->clock_mode == CLOCK_SPRINT) {
248+
if (!(m->clock_mode == CLOCK_SPRINT)) {
249249
m->clock_mode = CLOCK_STEP;
250250
}
251251
break;
252252
case KEY_F(7): // F7
253-
if (!m->clock_mode == CLOCK_SPRINT) {
253+
if (!(m->clock_mode == CLOCK_SPRINT)) {
254254
m->clock_mode = CLOCK_SLOW;
255255
}
256256
break;
257257
case KEY_F(8): // F8
258-
if (!m->clock_mode == CLOCK_SPRINT) {
258+
if (!(m->clock_mode == CLOCK_SPRINT)) {
259259
m->clock_mode = CLOCK_FAST;
260260
}
261261
break;

0 commit comments

Comments
 (0)