Skip to content
Snippets Groups Projects
Commit 45c99ff9 authored by Legy (Beini)'s avatar Legy (Beini) Committed by Jens Nolte
Browse files

Move qthing includes to their own dir and clean up

parent 87b6589e
No related branches found
No related tags found
1 merge request!16Merge dev branch into master
#include <qthing.hpp>
#include "qthing_legacy.hpp"
#include "util.hpp"
#include <sstream>
......@@ -7,24 +8,24 @@
#include "freertos/task.h"
#include "lwip/sockets.h"
unsigned long IRAM_ATTR millis() {
unsigned long IRAM_ATTR qthing::millis() {
return xTaskGetTickCount() * portTICK_PERIOD_MS;
}
std::string to_string(float value, int precision) {
std::string qthing::to_string(float value, int precision) {
std::stringstream stream;
stream.precision(precision);
stream << value;
return stream.str();
}
std::string to_string(uint32_t value) {
std::string qthing::to_string(uint32_t value) {
std::stringstream stream;
stream << value;
return stream.str();
}
std::string to_string(struct sockaddr_in6 sourceAddr) {
std::string qthing::to_string(struct sockaddr_in6 sourceAddr) {
char addr_str[128];
if (sourceAddr.sin6_family == PF_INET) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment