Skip to content

Commit

Permalink
AP_Frsky_Telem: remove dead variable write
Browse files Browse the repository at this point in the history
this is falsified at the top of the function

../../libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp:238:13: warning: Value stored to 'packet_ready' is never read [deadcode.DeadStores]
            packet_ready = false;
            ^              ~~~~~
1 warning generated.
  • Loading branch information
peterbarker committed Jan 29, 2025
1 parent 4ecfacb commit 0a5d450
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ bool AP_Frsky_SPort_Passthrough::is_packet_ready(uint8_t idx, bool queue_empty)
break;
case TERRAIN:
{
packet_ready = false;
#if AP_TERRAIN_AVAILABLE
const AP_Terrain *terrain = AP::terrain();
packet_ready = terrain && terrain->enabled();
Expand Down

0 comments on commit 0a5d450

Please sign in to comment.