Skip to content

Commit

Permalink
Update gng_scale.c
Browse files Browse the repository at this point in the history
Replace \x1b (ESC) with !
Though I'm not sure why the scale takes ! char.
  • Loading branch information
eamars authored Feb 4, 2024
1 parent 9f6e22e commit 83e8da2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gng_scale.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#include "scale.h"
#include "app.h"

const static char CMD_REQUEST_DATA_TRANSFER[] = "\x1bp\r\n";
const static char CMD_CALIBRATE_FUNC[] = "\x1bq\r\n";
const static char CMD_COUNTING_FUNC[] = "\x1br\r\n";
const static char CMD_CHANGE_WEIGHT_UNIT[] = "\x1bs\r\n";
const static char CMD_TARE_FUNC[] = "\x1bt\r\n";
const static char CMD_BACKLIGHT[] = "\x1bu\r\n";
const static char CMD_REQUEST_DATA_TRANSFER[] = "!p\r\n";
const static char CMD_CALIBRATE_FUNC[] = "!q\r\n";
const static char CMD_COUNTING_FUNC[] = "!r\r\n";
const static char CMD_CHANGE_WEIGHT_UNIT[] = "!s\r\n";
const static char CMD_TARE_FUNC[] = "!t\r\n";
const static char CMD_BACKLIGHT[] = "!u\r\n";



Expand Down

0 comments on commit 83e8da2

Please sign in to comment.