mirror of https://github.com/google/pebble
spelling: capacity
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
f7cac0ad9b
commit
30232b4c27
|
@ -646,7 +646,7 @@ size_t flash_get_size(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
// capcity_megabytes = 2^(capacity in whoami)
|
||||
// capacity_megabytes = 2^(capacity in whoami)
|
||||
uint32_t capacity = spi_flash_id & 0x000000FF;
|
||||
// get the capacity of the flash in bytes
|
||||
return 1 << capacity;
|
||||
|
|
Loading…
Reference in New Issue