mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
5b6ab7faf3
* add blank example * add ipc example code, need to change FURI API * add ipc example code, need to change FURI API * change core API, add context * check handler at take * fix important bugs in furi * drawing example * add posix mq * fix unsigned demo counter * create at open * working local demo * russian version of IPC example * english version * add gif
25 lines
No EOL
496 B
C
25 lines
No EOL
496 B
C
#define _GNU_SOURCE
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
|
|
#include "log.h"
|
|
#include "furi.h"
|
|
|
|
#define PRINT_STR_SIZE 64
|
|
|
|
void fuprintf(FuriRecordSubscriber* f, const char * format, ...) {
|
|
char buffer[PRINT_STR_SIZE];
|
|
|
|
va_list args;
|
|
va_start(args, format);
|
|
vsprintf(buffer, format, args);
|
|
va_end(args);
|
|
|
|
furi_write(f, buffer, strlen(buffer));
|
|
}
|
|
|
|
FuriRecordSubscriber* get_default_log() {
|
|
return furi_open("tty", false, false, NULL, NULL, NULL);
|
|
} |