@@ -184,7 +184,7 @@ static void print_readmetable()
184184/**
185185 * @brief Checks if an existing connection exists, and either uses it, or closes it and creates a new one
186186 *
187- * A device - depending on the feature - needs differend Endpoints/Connections
187+ * A device - depending on the feature - needs different Endpoints/Connections
188188 * Instead of opening and keeping track of multiple connections, we close and open connections no demand
189189 *
190190 *
@@ -193,7 +193,7 @@ static void print_readmetable()
193193 * @param device_handle an existing device handle or NULL if none yet
194194 * @param device headsetcontrol struct, containing vendor and productid
195195 * @param cap which capability to use, to determine interfaceid and usageids
196- * @return hid_device pointer if successfull , or NULL (error in hid_error)
196+ * @return hid_device pointer if successful , or NULL (error in hid_error)
197197 */
198198static hid_device * dynamic_connect (char * * existing_hid_path , hid_device * device_handle ,
199199 struct device * device , enum capabilities cap )
@@ -307,7 +307,7 @@ static FeatureResult handle_feature(struct device* device_found, hid_device** de
307307 }
308308
309309 case CAP_NOTIFICATION_SOUND :
310- ret = device_found -> notifcation_sound (* device_handle , (uint8_t ) * (int * )param );
310+ ret = device_found -> notification_sound (* device_handle , (uint8_t ) * (int * )param );
311311 break ;
312312
313313 case CAP_LIGHTS :
@@ -503,7 +503,7 @@ void print_help(char* programname, struct device* device_found, bool show_all)
503503 printf ("Parametric Equalizer:\n" );
504504 printf (" --parametric-equalizer STRING\t\tSet equalizer bands (bands separated by semicolon)\n" );
505505 printf (" Band format:\t\t\tFREQUENCY,GAIN,Q_FACTOR,FILTER_TYPE\n" );
506- printf (" Availabe filter types:\t\t" );
506+ printf (" Available filter types:\t\t" );
507507 for (int i = 0 ; i < NUM_EQ_FILTER_TYPES ; i ++ ) {
508508 if (show_all || has_capability (device_found -> parametric_equalizer -> filter_types , i )) {
509509 printf ("%s, " , equalizer_filter_type_str [i ]);
@@ -1016,7 +1016,7 @@ int main(int argc, char* argv[])
10161016 bool isExtendedOutput = output_format == OUTPUT_YAML || output_format == OUTPUT_JSON || output_format == OUTPUT_ENV ;
10171017 for (int i = 0 ; i < headset_available ; i ++ ) {
10181018 for (int j = 0 ; j < numFeatures ; j ++ ) {
1019- // For specific output types, like YAML, we will do all actions - even when not specified - to aggreate all information
1019+ // For specific output types, like YAML, we will do all actions - even when not specified - to aggregate all information
10201020 if (isExtendedOutput && feature_requests [i ][j ].type == CAPABILITYTYPE_INFO && !feature_requests [i ][j ].should_process ) {
10211021 if (device_has_capability (devices_found [i ].device , feature_requests [i ][j ].cap )) {
10221022 feature_requests [i ][j ].should_process = true;
0 commit comments