Skip to content

Commit

Permalink
Fix caps
Browse files Browse the repository at this point in the history
  • Loading branch information
oyama committed Jun 19, 2024
1 parent d104465 commit a9d02ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
|-----------------|-------------------------------------------------------------------------|
| [hello](examples/hello) | Hello filesystem world. |
| [fs\_inits](examples/fs_inits) | Examples of file system layout combinations. |
| [multicore\_logger](examples/multicore_logger) | Store high sampling rate sensor data on SD cards. |
| [multicore\_logger](examples/multicore_logger) | Multi-core 500 Hz sampling rate sensor data stored on SD card |
| [elastic\_mqtt\_client](examples/elastic_mqtt_client) |Implements an MQTT client with a local queue to handle network disconnections seamlessly. |
| [usb\_logger](examples/usb_logger) | Data logger that mounts littlefs and FAT on flash memory and shares it with a PC via USB mass storage class.|
| [benchmark](examples/benchmark)| Data transfer tests with different block devices and different file system combinations.|
Expand Down
10 changes: 5 additions & 5 deletions examples/multicore_logger/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ typedef struct {

queue_t sensor_queue;

float normal_random(float mean, float stddev) {
static int hasSpare = 0;
static float normal_random(float mean, float stddev) {
static bool has_spare = false;
static float spare;

if (hasSpare) {
hasSpare = 0;
if (has_spare) {
has_spare = false;
return mean + stddev * spare;
}

hasSpare = 1;
has_spare = true;
float u, v, s;
do {
u = (float)rand() / RAND_MAX * 2.0f - 1.0f;
Expand Down

0 comments on commit a9d02ec

Please sign in to comment.