Changeset - da187468cae4
[Not reviewed]
default
0 1 0
matthewreed - 8 years ago 2017-04-10 18:15:48

Added default cases to switch statements
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/protocol.c
Show inline comments
 
@@ -85,24 +85,27 @@ bool protocol_process_message(protocol_m
 
            case GET_DATA:
 
                {
 
                    //call get data weak function
 
                    result = protocol_get_data(message);
 
                }
 
                break;
 
            case CONFIG:
 
                {
 
                    //call config weak function
 
                    result = protocol_config(message);
 
                }
 
                break;
 
            default:
 
                result = false;
 
                break;
 
        }
 
    }
 
    
 
    return result;
 
}
 
 
bool protocol_send_data(protocol_data_key_t key, uint8_t sensor, float data)
 
{
 
    bool result = true;
 
 
    protocol_message_t message;
 
    message.command = false;
0 comments (0 inline, 0 general)