Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: main.cpp
- Revision:
- 112:3872569be2af
- Parent:
- 111:8ab3899c4e3d
- Child:
- 116:5de54f09f754
--- a/main.cpp Fri May 15 10:14:05 2015 +0000 +++ b/main.cpp Fri May 15 14:07:51 2015 +0000 @@ -159,16 +159,12 @@ ret = agent.run(); if (ret == 0) { char status[27]; - const char* user= srUsername; - int len = strchr(user, '/')-user+sizeof("Tenant: "); - len = len <= 27 ? len : 27; - snprintf(status, len, "Tenant: %s", user); + snprintf(status, sizeof(status), "Tenant: %s", srTenant); LCDDisplay::inst().setFirstLine(status); + agent.loop(); break; } } - if (ret == 0) - agent.loop(); shutdown(); return ret; }