summaryrefslogtreecommitdiffstats
path: root/app/httpd.c
diff options
context:
space:
mode:
authorJames McKenzie <root@ka-ata-killa.panaceas.james.local>2023-02-18 18:44:57 +0000
committerJames McKenzie <root@ka-ata-killa.panaceas.james.local>2023-02-18 18:44:57 +0000
commitae0195ab312388deb8466816375addc155eadad9 (patch)
tree1638133d5908a0cc977da3f7e08bffa5a521f4a5 /app/httpd.c
parent86d61b9e775d615f210b79e4f69dbc3d62c885ea (diff)
downloadclock-ae0195ab312388deb8466816375addc155eadad9.tar.gz
clock-ae0195ab312388deb8466816375addc155eadad9.tar.bz2
clock-ae0195ab312388deb8466816375addc155eadad9.zip
add code for fetching epheredies and ublox assit data
Diffstat (limited to 'app/httpd.c')
-rw-r--r--app/httpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/httpd.c b/app/httpd.c
index b3776c3..71c62a4 100644
--- a/app/httpd.c
+++ b/app/httpd.c
@@ -270,6 +270,10 @@ int fs_open_custom (struct fs_file *file, const char *name)
file->data = (const char *)meteotime_data;
file->len=sizeof(meteotime_data);
}
+ else if (!strcmp (name, "/ephemeris.dat")) {
+ file->data = (const char *)ephemeris;
+ file->len=sizeof(ephemeris);
+ }
else {
printf ("looking for url=%s, found nothing\n", name);
return 0;