From 3df0e5d026d54003381d8837531704e7e8caa081 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Sun, 10 Sep 2023 18:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=9A=84=E4=B8=80=E5=A4=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/core.c b/applications/core.c index c7d0074..ef81289 100644 --- a/applications/core.c +++ b/applications/core.c @@ -155,7 +155,7 @@ void initFiles() const char *cfgstr = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"coordinates\":[[[109.85768145990244,18.422149049902515],[109.85578152088834,18.418353201926465],[109.86089674131063,18.41424527209267],[109.86531775324693,18.418387867583846],[109.86491584307038,18.421785068111333],[109.85768145990244,18.422149049902515]]],\"type\":\"Polygon\"}}]}"; LOG_W("no map file found, creat map one."); - int fd = open(LJW_CFG_FILE_NAME, O_WRONLY | O_CREAT); + int fd = open("map.geojson", O_WRONLY | O_CREAT); if (fd > 0) { write(fd, cfgstr, strlen(cfgstr)); close(fd);