Skip to content

Commit

Permalink
firmware: app: libs: libpredict: Fix warning about shift size
Browse files Browse the repository at this point in the history
  • Loading branch information
c-porto committed Mar 5, 2025
1 parent 7feade7 commit b494f0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firmware/app/libs/libpredict/src/orbit.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ predict_orbital_elements_t * predict_parse_compact_tle(
( uint32_t ) compact_tle[ 1 ] );
m->epoch_day = deserialize_double( &compact_tle[ 2 ] );

tecc = ( compact_tle[ 10 ] << 24U ) | ( compact_tle[ 11 ] << 16U ) |
( compact_tle[ 12 ] << 8U ) | compact_tle[ 13 ];
tecc = ( ( uint32_t ) compact_tle[ 10 ] << 24U ) |
( ( uint32_t ) compact_tle[ 11 ] << 16U ) |
( ( uint32_t ) compact_tle[ 12 ] << 8U ) |
( ( uint32_t ) compact_tle[ 13 ] );

m->eccentricity = ( double ) tecc;
m->eccentricity *= 1.0e-07;
Expand Down

0 comments on commit b494f0e

Please sign in to comment.