code cleanup

This commit is contained in:
Martin Brodbeck 2023-01-11 11:32:20 +01:00
parent 100ae99e22
commit 46b82f7995
3 changed files with 4 additions and 3 deletions

View file

@ -30,8 +30,8 @@ int main() {
#ifdef DEBUG
printf("!!! DEBUG mode !!!\n");
#endif
printf("Firmware version: %s\n", PROJECT_VERSION);
#endif
wifi_enable(); // Enable Wifi in order to set time and retrieve data

View file

@ -1,6 +1,5 @@
#include "http_client.h"
#include <iostream>
#include <memory>
std::unique_ptr<char[]> myBodyBuffer = nullptr;
@ -72,7 +71,7 @@ std::string HttpClient::retrieveWasteDatesAsCsv() {
received = false;
#ifdef DEBUG
std::cout << result << std::endl;
printf("%s", result.c_str());
#endif
return result;

View file

@ -213,7 +213,9 @@ void recover_from_sleep(uint scb_orig, uint clock0_orig, uint clock1_orig) {
}
void perform_sleep(datetime_t &untilDt) {
#ifdef DEBUG
printf("Going to sleep...\n");
#endif
uart_default_tx_wait_blocking();
sleep_goto_sleep_until(&untilDt, nullptr);