mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
FS-5819 remove pointless comparison
This commit is contained in:
parent
09e45cdda2
commit
0e37c99cd6
@ -1260,7 +1260,7 @@ switch_status_t skinny_handle_keypad_button_message(listener_t *listener, skinny
|
||||
digit = '*';
|
||||
} else if (request->data.keypad_button.button == 15) {
|
||||
digit = '#';
|
||||
} else if (request->data.keypad_button.button >= 0 && request->data.keypad_button.button <= 9) {
|
||||
} else if (request->data.keypad_button.button <= 9) { /* unsigned, so guaranteed to be >= 0 */
|
||||
digit = '0' + request->data.keypad_button.button;
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "UNKNOW DTMF RECEIVED ON CALL %d [%d]\n", tech_pvt->call_id, request->data.keypad_button.button);
|
||||
|
Loading…
x
Reference in New Issue
Block a user