silence warnings

This commit is contained in:
joeycastillo
2023-07-29 07:03:49 -04:00
parent 6a69e0a691
commit 1377d36622
2 changed files with 5 additions and 4 deletions

View File

@@ -278,14 +278,14 @@ static void _randonaut_face_display(randonaut_state_t *state) {
sprintf(buf, "BE # %d", state->point.bearing );
break;
case 3: // latitude DD._____
sprintf(state->scratchpad, "%07d", abs(state->point.latitude));
sprintf(state->scratchpad, "%07d", abs((int32_t)(state->point.latitude)));
sprintf(buf, "LA #%c %c%c ", state->point.latitude < 0 ? '-' : '+', state->scratchpad[0], state->scratchpad[1]);
break;
case 4: // latitude __.DDDDD
sprintf(buf, "LA , %c%c%c%c%c", state->scratchpad[2], state->scratchpad[3],state->scratchpad[4], state->scratchpad[5],state->scratchpad[6]);
break;
case 5: // longitude DD._____
sprintf(state->scratchpad, "%08d", abs(state->point.longitude));
sprintf(state->scratchpad, "%08d", abs((int32_t)(state->point.longitude)));
sprintf(buf, "LO #%c%c%c%c ", state->point.longitude < 0 ? '-' : '+',state->scratchpad[0], state->scratchpad[1], state->scratchpad[2]);
break;
case 6: // longitude __.DDDDD