This code in the master sends a numeric value of 1. NOT an ASCII character 1, which has a numeric value of 49 in base 10.
This code in the slave looks for an ASCII character 1, which has a numeric value of 49 in base 10. Which it will never, ever receive.