aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-04-07 19:29:17 +0200
committerlonkaars <loek@pipeframe.xyz>2023-04-07 19:29:17 +0200
commitcc5fda1626ac77a74459bcfe3c422be3c2a5267b (patch)
tree07b46ae1a507359ac241869c7c3e5887d80880d0 /src/main.c
parent892424ba4d0c979e4351f7a866b6fe777783e4d2 (diff)
WIP more debugging
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index fb96d84..0676dd6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,16 +17,16 @@ volatile unsigned short g_hh_hcount;
void hh_ppu_vblank_interrupt() {
static unsigned long frame = 0;
- static bool done = false;
#ifdef HH_TARGET_STM32
hh_ppu_flush();
hh_input_read();
hh_demo_loop(frame);
#endif
#ifdef HH_TARGET_DESKTOP
+ static bool done = false;
//hh_ppu_vram_dwrite((uint8_t*) HH_PPUINTDEMO_ARR, HH_PPUINTDEMO_LENGTH);
for (unsigned int limit = 0; limit < 1000; limit++) {
- if (frame * 4 > HH_PPUINTDEMO_LENGTH) {
+ if (frame * 4 >= HH_PPUINTDEMO_LENGTH) {
if (!done) printf("done\n");
done = true;
return;