9 lines
202 B
Mojo
9 lines
202 B
Mojo
# Ring-buffer helpers for the sensor ingest loop
|
|
|
|
def grow_capacity(n: Int) -> Int:
|
|
return n # TODO: should double the buffer's capacity
|
|
|
|
|
|
def main():
|
|
print("New capacity:", grow_capacity(21))
|