- cleaned up makefiles
- polished code to avoid warnings
This commit is contained in:
2
oicom.c
2
oicom.c
@@ -119,7 +119,7 @@ void OiSet(Eve *eve, char *cmd, double val, int dig) {
|
||||
|
||||
if (eve->syntax == 0) {
|
||||
for (;dig>0;dig--) val=val*10;
|
||||
snprintf(buf, sizeof(buf), "%s%05d", cmd, val);
|
||||
snprintf(buf, sizeof(buf), "%s%05d", cmd, (int)val);
|
||||
} else {
|
||||
snprintf(buf, sizeof(buf), "%s%f", cmd, val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user