Skip to content

Commit

Permalink
fix compiler warning datagramP
Browse files Browse the repository at this point in the history
  • Loading branch information
pimvliet committed Dec 6, 2022
1 parent 9044ea3 commit d0a0ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oshw/STM32F746ZG/nicdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ int ecx_outframe(ecx_portt *port, uint8 idx, int stacknumber)
*/
int ecx_outframe_red(ecx_portt *port, uint8 idx)
{
ec_comt *datagramP;
ec_etherheadert *ehp;
int rval;

Expand All @@ -356,6 +355,8 @@ int ecx_outframe_red(ecx_portt *port, uint8 idx)
rval = ecx_outframe(port, idx, 0);
/* Redundancy is not supported using a single port */
#if 0
ec_comt *datagramP;

if (port->redstate != ECT_RED_NONE)
{
ehp = (ec_etherheadert*) &(port->txbuf2);
Expand Down

0 comments on commit d0a0ff1

Please sign in to comment.