lcd_erase_line() is called with argument, but the argument is ignored by lcd_erase_line().
diagonal_rod hadn't been used anywhere.