/* Function for sending acknowledgement to I2C Master. 
This function will write an acknowledgement byte 's' on I2C bus to indicate the master that it has received and programmed the data.  */
static void send_ack(void)
/* Function for sending acknowledgement to I2C Master. 
This function will write an acknowledgement byte 's' on I2C bus to indicate the master that it has received and programmed the data.  */
static void send_ack(void)
{
	uint8_t ack = 's';
	packet.data_length = 1;
	packet.data = &ack;
	while (i2c_slave_write_packet_wait(&slave, &packet) != STATUS_OK);
}