mirror of
https://github.com/esphome/esphome.git
synced 2025-09-18 03:02:20 +01:00
Bump black from 21.12b0 to 22.1.0 (#3147)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
@@ -13,12 +13,12 @@ DEPENDENCIES = ["esp32"]
|
||||
|
||||
|
||||
def calc_max_frequency(bit_depth):
|
||||
return 80e6 / (2 ** bit_depth)
|
||||
return 80e6 / (2**bit_depth)
|
||||
|
||||
|
||||
def calc_min_frequency(bit_depth):
|
||||
max_div_num = ((2 ** 20) - 1) / 256.0
|
||||
return 80e6 / (max_div_num * (2 ** bit_depth))
|
||||
max_div_num = ((2**20) - 1) / 256.0
|
||||
return 80e6 / (max_div_num * (2**bit_depth))
|
||||
|
||||
|
||||
def validate_frequency(value):
|
||||
|
Reference in New Issue
Block a user