Skip to content

Commit ea27281

Browse files
committed
x
1 parent 495bd25 commit ea27281

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cores/arduino/zephyr/api/Print.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class Print : virtual public idl::PrintIfc {
4242
}
4343

4444
public:
45+
using idl::PrintIfc::write;
46+
4547
int getWriteError() {
4648
return errcode.getError();
4749
}
@@ -109,7 +111,7 @@ size_t print_number_base_pow2(void *ctx, unsigned long long ull, unsigned bits);
109111
template <class Number>
110112
size_t print_number(void *ctx, Number n, const int base, const char *decfmt) {
111113
if (base == 0) {
112-
return reinterpret_cast<Print *>(ctx)->write((char)n);
114+
return reinterpret_cast<Print *>(ctx)->write(static_cast<uint8_t>(n));
113115
} else if (base == 2) {
114116
return zephyr::print_number_base_pow2(ctx, n, 1);
115117
} else if (base == 4) {

0 commit comments

Comments
 (0)