ports/misc/rocrail/patches/patch-rocdigs_impl_loconet_lnmaster_c

26 lines
714 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: rocdigs/impl/loconet/lnmaster.c
--- rocdigs/impl/loconet/lnmaster.c.orig
+++ rocdigs/impl/loconet/lnmaster.c
@@ -379,17 +379,17 @@ static Boolean __setstat1byte(struct __lnslot* slot, i
slot[slotnr].format = 0;
if( stat & DEC_MODE_128 ) {
- slot[slotnr].steps == 128;
+ slot[slotnr].steps = 128;
}
else if( stat & DEC_MODE_28 ) {
- slot[slotnr].steps == 28;
+ slot[slotnr].steps = 28;
}
else if( stat & DEC_MODE_14 ) {
- slot[slotnr].steps == 14;
+ slot[slotnr].steps = 14;
}
else if( stat & DEC_MODE_28TRI ) {
slot[slotnr].format = 1;
- slot[slotnr].steps == 28;
+ slot[slotnr].steps = 28;
}
TraceOp.trc( name, TRCLEVEL_INFO, __LINE__, 9999,