code cleanup
This commit is contained in:
parent
100ae99e22
commit
46b82f7995
3 changed files with 4 additions and 3 deletions
|
@ -30,8 +30,8 @@ int main() {
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("!!! DEBUG mode !!!\n");
|
printf("!!! DEBUG mode !!!\n");
|
||||||
#endif
|
|
||||||
printf("Firmware version: %s\n", PROJECT_VERSION);
|
printf("Firmware version: %s\n", PROJECT_VERSION);
|
||||||
|
#endif
|
||||||
|
|
||||||
wifi_enable(); // Enable Wifi in order to set time and retrieve data
|
wifi_enable(); // Enable Wifi in order to set time and retrieve data
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#include "http_client.h"
|
#include "http_client.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
std::unique_ptr<char[]> myBodyBuffer = nullptr;
|
std::unique_ptr<char[]> myBodyBuffer = nullptr;
|
||||||
|
@ -72,7 +71,7 @@ std::string HttpClient::retrieveWasteDatesAsCsv() {
|
||||||
received = false;
|
received = false;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cout << result << std::endl;
|
printf("%s", result.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -213,7 +213,9 @@ void recover_from_sleep(uint scb_orig, uint clock0_orig, uint clock1_orig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void perform_sleep(datetime_t &untilDt) {
|
void perform_sleep(datetime_t &untilDt) {
|
||||||
|
#ifdef DEBUG
|
||||||
printf("Going to sleep...\n");
|
printf("Going to sleep...\n");
|
||||||
|
#endif
|
||||||
uart_default_tx_wait_blocking();
|
uart_default_tx_wait_blocking();
|
||||||
|
|
||||||
sleep_goto_sleep_until(&untilDt, nullptr);
|
sleep_goto_sleep_until(&untilDt, nullptr);
|
||||||
|
|
Loading…
Reference in a new issue