diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c
index a99e520aeff87cf1b11b7d2da3275f35cb40fa30..ad3097e34b52c94b9b3c88703c337a3d257bd42b 100644
--- a/ch32v003fun/ch32v003fun.c
+++ b/ch32v003fun/ch32v003fun.c
@@ -931,9 +931,9 @@ int _write(int fd, const char *buf, int size)
 int putchar(int c)
 {
 	int timeout = 16000;
-    while( ((*DMDATA0) & 0x80) ) if( timeout-- == 0 ) return 0;
-    *DMDATA0 = 0x85 | ((const char)c<<8);
-    return 1;
+	while( ((*DMDATA0) & 0x80) ) if( timeout-- == 0 ) return 0;
+	*DMDATA0 = 0x85 | ((const char)c<<8);
+	return 1;
 }
 
 void SetupDebugPrintf()