network abstraction, time handling
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
#include <sinkStruct.h>
|
||||
#include <sha256.h>
|
||||
#include <eeprom.h>
|
||||
#include <networkAbstractionLayer.h>
|
||||
|
||||
|
||||
|
||||
const uint32_t COUNTER_FREQUENCY = 1.0e6;
|
||||
@ -198,7 +200,7 @@ void mainsCntsInputCaptureCallback(TIM_HandleTypeDef *htim) {
|
||||
void counterInit() {
|
||||
deviceStats = getGlobalDeviceStats();
|
||||
|
||||
seconds = wizGetSeconds();
|
||||
seconds = networkGetSeconds();
|
||||
for (uint8_t i = 0; i < NUM_OF_MINUTE_BUFFERS; i++) {
|
||||
minuteBufferReady[i] = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user