You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devices/aht20/error.go

20 lines
423 B
Go

package aht20
type NotInitializedError struct{}
func (e *NotInitializedError) Error() string {
return "AHT20 is not initialized."
}
type ReadTimeoutError struct{}
func (e *ReadTimeoutError) Error() string {
return "Read timeout. AHT20 did not finish measurement in time."
}
type DataCorruptionError struct{}
func (e *DataCorruptionError) Error() string {
return "Data is corrupt. The CRC8 hashes did not match."
}