mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-31 10:08:27 +02:00
Fix a bunch of typos (#2058)
Co-authored-by: Stefan Agner <stefan@agner.ch> Co-authored-by: Otto Winter <otto@otto-winter.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -162,7 +162,7 @@ void RC522::loop() {
|
||||
ESP_LOGW(TAG, "CMD_REQA -> Not OK %d", status);
|
||||
state_ = STATE_DONE;
|
||||
} else if (back_length_ != 2) { // || *valid_bits_ != 0) { // ATQA must be exactly 16 bits.
|
||||
ESP_LOGW(TAG, "CMD_REQA -> OK, but unexpacted back_length_ of %d", back_length_);
|
||||
ESP_LOGW(TAG, "CMD_REQA -> OK, but unexpected back_length_ of %d", back_length_);
|
||||
state_ = STATE_DONE;
|
||||
} else {
|
||||
state_ = STATE_READ_SERIAL;
|
||||
@@ -470,7 +470,7 @@ RC522::StatusCode RC522::await_crc_() {
|
||||
return STATUS_WAITING;
|
||||
|
||||
ESP_LOGD(TAG, "pcd_calculate_crc_() TIMEOUT");
|
||||
// 89ms passed and nothing happend. Communication with the MFRC522 might be down.
|
||||
// 89ms passed and nothing happened. Communication with the MFRC522 might be down.
|
||||
return STATUS_TIMEOUT;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class RC522 : public PollingComponent {
|
||||
STATUS_OK, // Success
|
||||
STATUS_WAITING, // Waiting result from RC522 chip
|
||||
STATUS_ERROR, // Error in communication
|
||||
STATUS_COLLISION, // Collission detected
|
||||
STATUS_COLLISION, // Collision detected
|
||||
STATUS_TIMEOUT, // Timeout in communication.
|
||||
STATUS_NO_ROOM, // A buffer is not big enough.
|
||||
STATUS_INTERNAL_ERROR, // Internal error in the code. Should not happen ;-)
|
||||
|
||||
Reference in New Issue
Block a user