Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: main.cpp
- Revision:
- 56:6ca2d4c1ffc4
- Parent:
- 53:54b2d3a0c7bf
- Child:
- 57:b76b3bdbe533
--- a/main.cpp Fri Oct 12 10:03:37 2012 +0000 +++ b/main.cpp Mon Oct 15 15:55:22 2012 +0000 @@ -23,6 +23,26 @@ time_t gPreviousUptime = 0; time_t gUptime = 0; +<<<<<<< local +void loopForever() { + while(1) { + Thread::wait(1000); + time_t now = time(NULL); + gPreviousUptime = gUptime; + } +} + +void test(void const*) { + VodafoneUSBModem modem; + LOG("Constructing TestManager"); + LOG("Running tests."); + TestManager *m = new TestManager(&modem); + int numPassed = m->executeTestProfile(TESTS_MANUAL); + loopForever(); +} + +======= +>>>>>>> other void setTime() { struct tm t; t.tm_year = 100;