for (i=0; i<16; i++)
{
/* Distribute the sub-channels for ef service in each onu */
if(i>=0 && i<4)
{
allot_high_channel(i, 1);
gate_info[i].tx_wave = 1;
}
else if(i>=4 && i<8)
{
allot_high_channel(i, 2);
gate_info[i].tx_wave = 2;
}
else if (i>=8 && i<11)
{
allot_high_channel(i, 3);
gate_info[i].tx_wave = 3;
}
else (i>=11 && i<16)仅仅是因为多了红色这一部分就一直在报错,其实想想也对,这个条件确实是多余的。
{
allot_high_channel(i, 3);
gate_info[i].tx_wave = 4;
}
}
{
/* Distribute the sub-channels for ef service in each onu */
if(i>=0 && i<4)
{
allot_high_channel(i, 1);
gate_info[i].tx_wave = 1;
}
else if(i>=4 && i<8)
{
allot_high_channel(i, 2);
gate_info[i].tx_wave = 2;
}
else if (i>=8 && i<11)
{
allot_high_channel(i, 3);
gate_info[i].tx_wave = 3;
}
else (i>=11 && i<16)仅仅是因为多了红色这一部分就一直在报错,其实想想也对,这个条件确实是多余的。
{
allot_high_channel(i, 3);
gate_info[i].tx_wave = 4;
}
}