The BYTE keyword is no longer supported.

Please use Serial.write() instead.

This is the error returned in the weathere-station-receiver software on Github.
Is there any examples of how to rewrite the statement please?

   #ifdef DEBUG
    //print it in binary text out the serial port
    Serial.print("BINARY=");
    for( b = WSR_TIMESTAMP_BIT_OFFSET ; b < (WSR_RFPACKETBITSIZE+WSR_TIMESTAMP_BIT_OFFSET) ; b++ )
    {
      if( (bICP_WSR_PacketData[bICP_WSR_PacketOutputPointer][b >> 3] & (0x80 >> (b&0x07))) != 0 )
      {
        Serial.print( '1', BYTE );
      } else {
        Serial.print( '0', BYTE );
      }
      if( b == 31 )
        Serial.print( ' ', BYTE );   //timestamp seperator
    }
    Serial.println();

ar ha! So this should be, for example
Serial.write( 1 );
or
Serial.print((char) 1);

hmmmmm tricky

ShanghaiTimes:
Re: The BYTE keyword is no longer supported.
Please use Serial.write() instead.

Is there any examples of how to rewrite the statement please?

Just follow the suggestion:

   #ifdef DEBUG
    //print it in binary text out the serial port
    Serial.print("BINARY=");
    for( b = WSR_TIMESTAMP_BIT_OFFSET ; b < (WSR_RFPACKETBITSIZE+WSR_TIMESTAMP_BIT_OFFSET) ; b++ )
    {
      if( (bICP_WSR_PacketData[bICP_WSR_PacketOutputPointer][b >> 3] & (0x80 >> (b&0x07))) != 0 )
      {
        Serial.write( '1' );
      } else {
        Serial.write( '0' );
      }
      if( b == 31 )
        Serial.write( ' ' );   //timestamp seperator
    }
    Serial.println();

Please change the tittle.
It makes it sound like keyword 'byte' has been removed from the IDE.

steinie44:
Please change the tittle.
It makes it sound like keyword 'byte' has been removed from the IDE.

No, please leave the title as it is.

BYTE != byte

BYTE != byte

True, but BYTE could be interrupted as byte with emphasizes.

"BYTE" used to be an Arduino qualifier, like "HEX, "DEC" or "BIN", but is no longer used.
I don't think "keyword" is appropriate, but unfortunately, that's how things are, and how the error message is reported..