mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: variable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
d37fe946e1
commit
c1e8ef32bd
5 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ void delay_us(uint32_t us) {
|
||||||
|
|
||||||
void delay_ms(uint32_t millis) {
|
void delay_ms(uint32_t millis) {
|
||||||
// delay_us(millis*1000) is not used because a long delay could easily
|
// delay_us(millis*1000) is not used because a long delay could easily
|
||||||
// overflow the veriable. Without the outer loop, a delay of even five
|
// overflow the variable. Without the outer loop, a delay of even five
|
||||||
// seconds would overflow.
|
// seconds would overflow.
|
||||||
while (millis--) {
|
while (millis--) {
|
||||||
delay_us(1000);
|
delay_us(1000);
|
||||||
|
|
|
@ -41,7 +41,7 @@ void NOINLINE delay_us(uint32_t us) {
|
||||||
|
|
||||||
void delay_ms(uint32_t millis) {
|
void delay_ms(uint32_t millis) {
|
||||||
// delay_us(millis*1000) is not used because a long delay could easily
|
// delay_us(millis*1000) is not used because a long delay could easily
|
||||||
// overflow the veriable. Without the outer loop, a delay of even five
|
// overflow the variable. Without the outer loop, a delay of even five
|
||||||
// seconds would overflow.
|
// seconds would overflow.
|
||||||
while (millis--) {
|
while (millis--) {
|
||||||
delay_us(1000);
|
delay_us(1000);
|
||||||
|
|
|
@ -36,7 +36,7 @@ void delay_us(uint32_t us) {
|
||||||
|
|
||||||
void delay_ms(uint32_t millis) {
|
void delay_ms(uint32_t millis) {
|
||||||
// delay_us(millis*1000) is not used because a long delay could easily
|
// delay_us(millis*1000) is not used because a long delay could easily
|
||||||
// overflow the veriable. Without the outer loop, a delay of even five
|
// overflow the variable. Without the outer loop, a delay of even five
|
||||||
// seconds would overflow.
|
// seconds would overflow.
|
||||||
while (millis--) {
|
while (millis--) {
|
||||||
delay_us(1000);
|
delay_us(1000);
|
||||||
|
|
|
@ -41,7 +41,7 @@ void NOINLINE delay_us(uint32_t us) {
|
||||||
|
|
||||||
void delay_ms(uint32_t millis) {
|
void delay_ms(uint32_t millis) {
|
||||||
// delay_us(millis*1000) is not used because a long delay could easily
|
// delay_us(millis*1000) is not used because a long delay could easily
|
||||||
// overflow the veriable. Without the outer loop, a delay of even five
|
// overflow the variable. Without the outer loop, a delay of even five
|
||||||
// seconds would overflow.
|
// seconds would overflow.
|
||||||
while (millis--) {
|
while (millis--) {
|
||||||
delay_us(1000);
|
delay_us(1000);
|
||||||
|
|
|
@ -379,7 +379,7 @@ inline void prv_hline_quadrant(GCornerMask quadrant, GCornerMask desired, GConte
|
||||||
|
|
||||||
static void prv_stroke_circle_quadrant_full(GContext* ctx, GPoint p, uint16_t radius,
|
static void prv_stroke_circle_quadrant_full(GContext* ctx, GPoint p, uint16_t radius,
|
||||||
uint8_t stroke_width, GCornerMask quadrant) {
|
uint8_t stroke_width, GCornerMask quadrant) {
|
||||||
// This algorithm will draw stroked circle with vairable width (only odd numbers for now)
|
// This algorithm will draw stroked circle with variable width (only odd numbers for now)
|
||||||
const uint8_t half_stroke_width = stroke_width / 2;
|
const uint8_t half_stroke_width = stroke_width / 2;
|
||||||
const int16_t inner_radius = radius - half_stroke_width;
|
const int16_t inner_radius = radius - half_stroke_width;
|
||||||
const uint8_t outer_radius = radius + half_stroke_width;
|
const uint8_t outer_radius = radius + half_stroke_width;
|
||||||
|
|
Loading…
Add table
Reference in a new issue