1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17027 from kaspar030/turo_json_fixes

turo: some json fixes
This commit is contained in:
Francisco 2021-10-22 10:48:29 +02:00 committed by GitHub
commit abbf798e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@
static void _print_comma(turo_t *ctx, turo_state_t state)
{
if (ctx->state == TURO_STATE_NEED_COMMA) {
print_str(",");
print_str(", ");
}
ctx->state = state;
}
@ -59,7 +59,7 @@ void turo_u64(turo_t *ctx, uint64_t val)
void turo_float(turo_t *ctx, float val)
{
_print_comma(ctx, TURO_STATE_NEED_COMMA);
print_float(val, 8);
print_float(val, 7);
}
void turo_string(turo_t *ctx, const char *str)