[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
@@ -270,10 +270,10 @@ static LevelDuration protocol_cyfral_encoder_yield(ProtocolCyfral* proto) {
|
||||
// start word (0b0001)
|
||||
switch(proto->encoder.index) {
|
||||
case 0:
|
||||
result = level_duration_make(false, CYFRAL_0_LOW);
|
||||
result = level_duration_make(false, CYFRAL_0_LOW); //-V1037
|
||||
break;
|
||||
case 1:
|
||||
result = level_duration_make(true, CYFRAL_0_HI);
|
||||
result = level_duration_make(true, CYFRAL_0_HI); //-V1037
|
||||
break;
|
||||
case 2:
|
||||
result = level_duration_make(false, CYFRAL_0_LOW);
|
||||
@@ -341,4 +341,4 @@ const ProtocolBase protocol_cyfral = {
|
||||
.start = (ProtocolEncoderStart)protocol_cyfral_encoder_start,
|
||||
.yield = (ProtocolEncoderYield)protocol_cyfral_encoder_yield,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user