   /* Server role, receive vote and send ack */
   if ( role_id == server_id ) {
     /* When there are clients connected to server and we receive command from serial */
-    if ( client_count > 0 ) {
+    if ( client_count >= 0 ) {
       uint8_t button = getPressedButton();
       char command;
       /* When there is data available in serial, read the data */

#define TRANSMIT_FAILED 2
#define WRONG_DESTINATION 3
/* RX/TX PACKET STRUCTURE */
struct Packet {
  byte destination;
  byte source;
  byte command;
  byte data;
};
/* Each packet is 4 bytes */
#define PAYLOAD 4


 * function to receive datapacket
 * return - 0 when reception was successful
 */
uint8_t receivePacket( uint8_t *rx_packet ) {
  /* When we don't use timeout */
  if ( !radio.available() ) return NO_DATA;
  /* Read the data from the tranceiver */
  radio.read( rx_packet, radio.getPayloadSize() );
  /* Only receive packets which are for us or broadcast packets for all clients */
  if ( rx_packet[DESTINATION] != role_id && rx_packet[DESTINATION] != client_all_id ) {
    debug_printf( "different destination %X source %X...", rx_packet[DESTINATION], rx_packet[SOURCE] );
    return WRONG_DESTINATION;
  }
  debug_printf( "source %X...", rx_packet[SOURCE] );
  return SUCCESS;
}

