patch-rocdigs_impl_p50x_c 413 B

123456789101112131415
  1. $OpenBSD: patch-rocdigs_impl_p50x_c,v 1.1 2017/05/07 23:57:16 espie Exp $
  2. Index: rocdigs/impl/p50x.c
  3. --- rocdigs/impl/p50x.c.orig
  4. +++ rocdigs/impl/p50x.c
  5. @@ -602,7 +602,7 @@ static Boolean __getversion( iOP50x inst ) {
  6. else
  7. state = P50_SNDERR;
  8. - if( state = P50_OK ) {
  9. + if( state == P50_OK ) {
  10. int bAvail = 0;
  11. ThreadOp.sleep( 500 );
  12. bAvail = SerialOp.available(data->serial);