From 3bdf6b872d9d1c4897a7c88ce09434d315783878 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Thu, 1 Dec 2022 01:03:46 +0100 Subject: [PATCH] Fix attr_out_int bug HEX to DEC --- src/hasp/hasp_attribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index d7426508..f8927470 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -2529,7 +2529,7 @@ void attr_out_json(lv_obj_t* obj, const char* attribute, const char* data) void attr_out_int(lv_obj_t* obj, const char* attribute, int32_t val) { char data[16]; - itoa(val, data, sizeof(data)); + itoa(val, data, DEC); attr_out(obj, attribute, data, true); }