sersend.c: Make %d, %ld, %sd print signed values.

This commit is contained in:
David Forrest 2014-02-18 19:08:29 -05:00 committed by Markus Hitter
parent 1eaf711923
commit 8ddc633531
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ void sersendf_P(PGM_P format, ...) {
break;
case 'd':
if (j == 4)
serwrite_int32(GET_ARG(uint32_t));
serwrite_int32(GET_ARG(int32_t));
else
serwrite_int16(GET_ARG(uint16_t));
serwrite_int16(GET_ARG(int16_t));
j = 0;
break;
case 'c':