Skip to content

Commit

Permalink
Typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Dec 28, 2024
1 parent 0ab7dcf commit ccda6b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ Supported signal types:
Signal Type|Setting|Notes
-----------|-------|-----
Tachometer|TACHO|Send normal tachometer pulses to indicate rotation speed.
Locked Rotor (Alarm)|LRA,treshold_rpm,locked_signal_level|Send Locked Rotor Alarm signal, when RPM is below treshold RPM speed send the indicated signal (HIGH or LOW).
Locked Rotor (Alarm)|LRA,threshold_rpm,locked_signal_level|Send Locked Rotor Alarm signal, when RPM is below threshold RPM speed send the indicated signal (HIGH or LOW).

*NOTE!* When changing RPM Mode for a mbfan (output), system must be reset before change takes effect.

Expand Down Expand Up @@ -1167,7 +1167,7 @@ Sensor numbering:
- VSENSORS: 101, 102, ...


Supporte I2C sensors:
Supported I2C sensors:

Sensor Model|Possible Addresses|Description|Notes
------------|------------------|-----------|-----
Expand Down Expand Up @@ -1910,7 +1910,7 @@ Unused flash memory: 1151488

### SYStem:I2C?
Returns status if I2C bus is active (available) currently.
Depening on board model I2C may not be available at all
Depending on board model I2C may not be available at all
or may only be available if SPI is not active.

Returns:
Expand Down
10 changes: 5 additions & 5 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern const char fanpico_credits_text[];


/**
* Exract (unsigned) number from end of command string.
* Extract (unsigned) number from end of command string.
*
* If string is "MBFAN3" return value is 3.
*
Expand Down Expand Up @@ -110,7 +110,7 @@ static int get_cmd_index(const char *cmd)


/**
* Return ealier (sub)command string
* Return earlier (sub)command string
*
* If full command was "CONF:FAN2:HYST:PWM". Depth 0 returns "HYST"
* and depth 1 returns "FAN2".
Expand Down Expand Up @@ -141,7 +141,7 @@ static const char* get_prev_cmd(const struct prev_cmd_t *prev_cmd, uint depth)
* If full command was "CONF:FAN3:NAME?", then depth 0 returns "FAN3"
* and depth 1 returns "CONF".
*
* @param prev_cmd Strucutre storing previous sub commands
* @param prev_cmd Structure storing previous sub commands
* @param depth Which command to return (0=last, 1=2nd to last, ...)
*
* @return number extracted from specified subcommand (negative value indicates error)
Expand Down Expand Up @@ -367,7 +367,7 @@ int cmd_version(const char *cmd, const char *args, int query, struct prev_cmd_t
if (query) {
printf("%s\n", credits);
#ifdef __GNUC__
printf("Compiled with: gcc v%s\n\n", __VERSION__);
printf("Compiled with: GCC v%s\n\n", __VERSION__);
#endif
}

Expand Down Expand Up @@ -3278,7 +3278,7 @@ static const struct cmd_t* run_cmd(char *cmd, const struct cmd_t *cmd_level, str
/**
* Process command string received from user.
*
* Splits command string into multiple commads by ';' character.
* Splits command string into multiple commands by ';' character.
* And executes each command using run_cmd() function.
*
* @param state Current system state.
Expand Down
2 changes: 1 addition & 1 deletion src/onewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void setup_onewire_bus()

onewire_bus->ctx = pico_1wire_init(ONEWIRE_PIN, -1, true);
if (!onewire_bus->ctx) {
log_msg(LOG_ERR, "1-Wire intialization failed!");
log_msg(LOG_ERR, "1-Wire initialization failed!");
return;
}
onewire_scan_bus();
Expand Down

0 comments on commit ccda6b7

Please sign in to comment.