merge
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
|
||||
Clock::Clock(Clock::mode mode)
|
||||
{
|
||||
Clock::currentTime = 0;
|
||||
Clock::currentTime = 40000;
|
||||
|
||||
Clock::clockmode = mode;
|
||||
|
||||
@@ -71,6 +71,7 @@ void Clock::generateWordlist(list<string>* wordlist)
|
||||
|
||||
struct tm tm;
|
||||
time(¤tTime);
|
||||
// currentTime += 100;
|
||||
localtime_r(¤tTime, &tm);
|
||||
|
||||
LOGGER_INFO("%lld\n\r", currentTime);
|
||||
@@ -157,7 +158,7 @@ void Clock::generateWordlist(list<string>* wordlist)
|
||||
|
||||
time_t Clock::getTime(void)
|
||||
{
|
||||
time(¤tTime);
|
||||
// time(¤tTime);
|
||||
return currentTime;
|
||||
}
|
||||
|
||||
@@ -172,11 +173,15 @@ int Clock::calculateHours(struct tm time)
|
||||
}
|
||||
|
||||
// Calculate hours to 12hour system
|
||||
if (time.tm_hour > 12)
|
||||
if (hours > 12)
|
||||
{
|
||||
hours = hours - 12;
|
||||
}
|
||||
|
||||
// Start at 1, not 0
|
||||
if (hours == 0)
|
||||
{
|
||||
hours++;
|
||||
}
|
||||
|
||||
return hours;
|
||||
}
|
||||
|
||||
@@ -48,10 +48,10 @@
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
static const char* ssid = "Kowalski";
|
||||
static const char* pass = "madagascar";
|
||||
//static const char* ssid = "vbchaos";
|
||||
//static const char* pass = "mijninternet";
|
||||
//static const char* ssid = "Kowalski";
|
||||
//static const char* pass = "madagascar";
|
||||
static const char* ssid = "vbchaos";
|
||||
static const char* pass = "mijninternet";
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// Function declarations
|
||||
|
||||
Reference in New Issue
Block a user