From 2afb00b3775955ef550bb6d89d1ba3d75736dc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20B=C3=A9rub=C3=A9?= Date: Wed, 5 Jun 2024 06:41:59 -0400 Subject: [PATCH] Make the default handle equal to the osd index unless the platform provides its own --- osd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osd/main.c b/osd/main.c index a88a2e0..8e3f577 100644 --- a/osd/main.c +++ b/osd/main.c @@ -310,7 +310,7 @@ int main(int argc, char *argv[]) PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); for (int id = 0; id < MAX_OSD; id++) { - osds[id].hand = -1; + osds[id].hand = id; osds[id].size = DEF_SIZE; osds[id].posx = DEF_POSX; osds[id].posy = DEF_POSY;