Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: page.c
- Revision:
- 2:14de8c14afd9
- Parent:
- 0:f8998d10763e
- Child:
- 11:84121d7b47e9
--- a/page.c Sun Jan 28 13:34:11 2018 +0000
+++ b/page.c Sun Jan 28 13:58:43 2018 +0000
@@ -5,15 +5,20 @@
#include "ip4addr.h"
#include "ip6addr.h"
-void PageAddHeader(const char* title, const char* style, const char* script)
+void PageAddHeader(const char* site, const char* title, const char* style, const char* script)
{
HttpAddText("<!DOCTYPE html>\r\n"
"<html>\r\n"
"<head>\r\n");
- if (title)
+ if (site)
{
HttpAddText(" <title>");
- HttpAddText(title);
+ HttpAddText(site);
+ if (title)
+ {
+ HttpAddText(" - ");
+ HttpAddText(title);
+ }
HttpAddText("</title>\r\n");
}
HttpAddText(" <link rel='stylesheet' href='/base.css' type='text/css'/>\r\n");