Skip to content

Commit a5598af

Browse files
authored
Merge pull request #168 from tmobile/Catchup-to-v3.4.0-rc3-plus-1
Catchup to v3.4.0 rc3 plus 1
2 parents a1c0010 + 3161b72 commit a5598af

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.github/workflows/mirror.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Public Mirror To Private
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
mirror:
8+
runs-on: self-hosted-ubuntu-20-04
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
ssh-key: ${{ secrets.MIRROR_KEY }}
13+
- run: |
14+
echo "cloning upstream"
15+
git clone --mirror https://github.com/tmobile/DevEdge-IoTDevKit-ZephyrSDK.git
16+
cd DevEdge-IoTDevKit-ZephyrSDK.git
17+
mkdir -p ~/.ssh
18+
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
19+
echo "${{ secrets.MIRROR_KEY }}" > ~/.ssh/id_rsa
20+
chmod 0400 ~/.ssh/id_rsa
21+
ls -la ~/.ssh
22+
eval $(ssh-agent -s)
23+
ssh-add ~/.ssh/id_rsa
24+
echo "pushing all from upstream to ours"
25+
git push -f --all [email protected]:TmoBrandedHw/firmware-zephyrsdk.git
26+
git push --tags [email protected]:TmoBrandedHw/firmware-zephyrsdk.git

samples/tmo_shell/prj.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ CONFIG_BT_DEBUG=n
9494
# Sensors
9595
CONFIG_SENSOR=y
9696
CONFIG_SENSOR_SHELL=y
97+
CONFIG_SENSOR_ASYNC_API=y
9798

9899
# Stack sizes
99100
CONFIG_MAIN_STACK_SIZE=4096
@@ -105,7 +106,7 @@ CONFIG_MBEDTLS_BUILTIN=y
105106

106107
# CONFIG_NEWLIB_LIBC=y
107108
CONFIG_MINIMAL_LIBC_MALLOC=y
108-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=2048
109+
# CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=2048
109110

110111
# Set number IPv4 network interfaces
111112
CONFIG_NET_IF_MAX_IPV4_COUNT=2

samples/tmo_shell/src/tmo_ble_demo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,9 @@ bool fetch_pressure(struct sensor_value *press)
10061006
}
10071007
return false;
10081008
}
1009+
#if 0
10091010
SYS_INIT(tmo_ble_demo_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
1010-
1011+
#endif
10111012

10121013
int cmd_ble_adv_conn(const struct shell *shell, size_t argc, char **argv)
10131014
{

samples/tmo_shell/src/tmo_fuel_gauge.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int get_pmic_status(uint8_t *charging, uint8_t *vbus, uint8_t *attached, uint8_t
2626
props[0].property_type = FUEL_GAUGE_STATUS;
2727
props[1].property_type = FUEL_GAUGE_CONNECT_STATE;
2828
props[2].property_type = FUEL_GAUGE_PRESENT_STATE;
29-
props[3].property_type = FUEL_GAUGE_MODE;
29+
props[3].property_type = FUEL_GAUGE_SBS_MODE;
3030

3131
ret = fuel_gauge_get_prop(alpc, props, ARRAY_SIZE(props));
3232

@@ -44,10 +44,10 @@ int get_pmic_status(uint8_t *charging, uint8_t *vbus, uint8_t *attached, uint8_t
4444
*attached = props[2].value.flags;
4545
}
4646
if (fault) {
47-
*fault = props[3].value.mode == PMIC_FAULT_MODE_VALUE;
47+
*fault = props[3].value.sbs_mode == PMIC_FAULT_MODE_VALUE;
4848
}
4949
if (charge_status) {
50-
*charge_status = props[3].value.mode;
50+
*charge_status = props[3].value.sbs_mode;
5151
}
5252

5353
return 0;

0 commit comments

Comments
 (0)