Skip to content

Commit

Permalink
made command buffer casted as uint8
Browse files Browse the repository at this point in the history
Jake-Hensley committed Jan 24, 2025
1 parent b1ab0a9 commit 0f7b718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general/src/sht30.c
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
//ner flash --ftdi for msb
static int sht30_write_reg(sht30_t *sht30, uint16_t command)
{
uint8_t command_buffer[2] = { (command & 0xff00u) >> 8u,
command & 0xffu };
uint8_t command_buffer[2] = { (uint8_t)(command & 0xff00) >> 8,
(uint8_t)(command & 0xff) };

return sht30->write_reg(command_buffer, 0, sizeof(command_buffer));
}

0 comments on commit 0f7b718

Please sign in to comment.