Reformat with bcpp

Used commandline: bcpp -i 2 -yq -ya -s -bcl -tbcl $i
This commit is contained in:
Pim van Pelt
2018-04-09 18:30:46 +02:00
parent 0337487a0c
commit d2e64c0f45
16 changed files with 310 additions and 243 deletions

View File

@ -19,13 +19,13 @@
#ifndef __MGOS_MOCK_H
#define __MGOS_MOCK_H
#include "mgos.h"
#include <time.h>
#include <sys/time.h>
// mgos_log
enum cs_log_level {
enum cs_log_level
{
LL_NONE = -1,
LL_ERROR = 0,
LL_WARN = 1,
@ -39,15 +39,14 @@ enum cs_log_level {
int log_print_prefix(enum cs_log_level l, const char *func, const char *file);
#define LOG(l, x) \
do { \
#define LOG(l, x) \
do \
{ \
if (log_print_prefix(l, __func__, __FILE__)) printf x; \
printf("\r\n"); \
} while (0)
double mg_time();
void mgos_usleep(uint32_t usecs);
#endif // __MGOS_MOCK_H
#endif // __MGOS_MOCK_H